{"action":"created","comment":{"url":"https://api.github.com/repos/lotus/lotus/pulls/comments/28046678","id":28046678,"diff_hunk":"@@ -57,6 +59,13 @@ def spec_root\n         @spec_root ||= Pathname.new('spec')\n       end\n \n+      # @since x.x.x\n+      # @api private\n+      def model_root\n+        @model_root ||= Pathname.new(['lib', target.to_s.split(::File::SEPARATOR).last]","path":"lib/lotus/commands/generate.rb","position":25,"original_position":25,"commit_id":"d65add283e17a714a02e73e7197f79197da8b886","original_commit_id":"d65add283e17a714a02e73e7197f79197da8b886","user":{"login":"nguyenngoc2505","id":3872648,"avatar_url":"https://avatars.githubusercontent.com/u/3872648?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenngoc2505","html_url":"https://github.com/nguyenngoc2505","followers_url":"https://api.github.com/users/nguyenngoc2505/followers","following_url":"https://api.github.com/users/nguyenngoc2505/following{/other_user}","gists_url":"https://api.github.com/users/nguyenngoc2505/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenngoc2505/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenngoc2505/subscriptions","organizations_url":"https://api.github.com/users/nguyenngoc2505/orgs","repos_url":"https://api.github.com/users/nguyenngoc2505/repos","events_url":"https://api.github.com/users/nguyenngoc2505/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenngoc2505/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2015-04-09T09:19:08Z","updated_at":"2015-04-09T09:19:08Z","html_url":"https://github.com/lotus/lotus/pull/199#discussion_r28046678","pull_request_url":"https://api.github.com/repos/lotus/lotus/pulls/199","_links":{"self":{"href":"https://api.github.com/repos/lotus/lotus/pulls/comments/28046678"},"html":{"href":"https://github.com/lotus/lotus/pull/199#discussion_r28046678"},"pull_request":{"href":"https://api.github.com/repos/lotus/lotus/pulls/199"}}},"pull_request":{"url":"https://api.github.com/repos/lotus/lotus/pulls/199","id":32839612,"html_url":"https://github.com/lotus/lotus/pull/199","diff_url":"https://github.com/lotus/lotus/pull/199.diff","patch_url":"https://github.com/lotus/lotus/pull/199.patch","issue_url":"https://api.github.com/repos/lotus/lotus/issues/199","number":199,"state":"open","locked":false,"title":"Entity/Repository generator","user":{"login":"nguyenngoc2505","id":3872648,"avatar_url":"https://avatars.githubusercontent.com/u/3872648?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenngoc2505","html_url":"https://github.com/nguyenngoc2505","followers_url":"https://api.github.com/users/nguyenngoc2505/followers","following_url":"https://api.github.com/users/nguyenngoc2505/following{/other_user}","gists_url":"https://api.github.com/users/nguyenngoc2505/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenngoc2505/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenngoc2505/subscriptions","organizations_url":"https://api.github.com/users/nguyenngoc2505/orgs","repos_url":"https://api.github.com/users/nguyenngoc2505/repos","events_url":"https://api.github.com/users/nguyenngoc2505/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenngoc2505/received_events","type":"User","site_admin":false},"body":"Entity/Repository generator\r\n\r\n1) `bundle exec lotus generate entity my_klass`\r\n => generate `lib/your_app/entities/my_klass`\r\n\r\n2) `bundle exec lotus generate repository my_klass`\r\n=> generate `lib/your_app/repository/my_klass_repository`\r\n\r\n3) `bundle exec lotus generate model my_klass`\r\n=>  run 1) and 2)","created_at":"2015-04-08T08:51:51Z","updated_at":"2015-04-09T09:19:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a349df7eae58d61941c405a8d03e5d28c1fa19e2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lotus/lotus/pulls/199/commits","review_comments_url":"https://api.github.com/repos/lotus/lotus/pulls/199/comments","review_comment_url":"https://api.github.com/repos/lotus/lotus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lotus/lotus/issues/199/comments","statuses_url":"https://api.github.com/repos/lotus/lotus/statuses/d65add283e17a714a02e73e7197f79197da8b886","head":{"label":"nguyenngoc2505:issues/198","ref":"issues/198","sha":"d65add283e17a714a02e73e7197f79197da8b886","user":{"login":"nguyenngoc2505","id":3872648,"avatar_url":"https://avatars.githubusercontent.com/u/3872648?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenngoc2505","html_url":"https://github.com/nguyenngoc2505","followers_url":"https://api.github.com/users/nguyenngoc2505/followers","following_url":"https://api.github.com/users/nguyenngoc2505/following{/other_user}","gists_url":"https://api.github.com/users/nguyenngoc2505/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenngoc2505/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenngoc2505/subscriptions","organizations_url":"https://api.github.com/users/nguyenngoc2505/orgs","repos_url":"https://api.github.com/users/nguyenngoc2505/repos","events_url":"https://api.github.com/users/nguyenngoc2505/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenngoc2505/received_events","type":"User","site_admin":false},"repo":{"id":33162051,"name":"lotus","full_name":"nguyenngoc2505/lotus","owner":{"login":"nguyenngoc2505","id":3872648,"avatar_url":"https://avatars.githubusercontent.com/u/3872648?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenngoc2505","html_url":"https://github.com/nguyenngoc2505","followers_url":"https://api.github.com/users/nguyenngoc2505/followers","following_url":"https://api.github.com/users/nguyenngoc2505/following{/other_user}","gists_url":"https://api.github.com/users/nguyenngoc2505/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenngoc2505/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenngoc2505/subscriptions","organizations_url":"https://api.github.com/users/nguyenngoc2505/orgs","repos_url":"https://api.github.com/users/nguyenngoc2505/repos","events_url":"https://api.github.com/users/nguyenngoc2505/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenngoc2505/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyenngoc2505/lotus","description":"A complete web framework for Ruby","fork":true,"url":"https://api.github.com/repos/nguyenngoc2505/lotus","forks_url":"https://api.github.com/repos/nguyenngoc2505/lotus/forks","keys_url":"https://api.github.com/repos/nguyenngoc2505/lotus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenngoc2505/lotus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenngoc2505/lotus/teams","hooks_url":"https://api.github.com/repos/nguyenngoc2505/lotus/hooks","issue_events_url":"https://api.github.com/repos/nguyenngoc2505/lotus/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenngoc2505/lotus/events","assignees_url":"https://api.github.com/repos/nguyenngoc2505/lotus/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenngoc2505/lotus/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenngoc2505/lotus/tags","blobs_url":"https://api.github.com/repos/nguyenngoc2505/lotus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenngoc2505/lotus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenngoc2505/lotus/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenngoc2505/lotus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenngoc2505/lotus/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenngoc2505/lotus/languages","stargazers_url":"https://api.github.com/repos/nguyenngoc2505/lotus/stargazers","contributors_url":"https://api.github.com/repos/nguyenngoc2505/lotus/contributors","subscribers_url":"https://api.github.com/repos/nguyenngoc2505/lotus/subscribers","subscription_url":"https://api.github.com/repos/nguyenngoc2505/lotus/subscription","commits_url":"https://api.github.com/repos/nguyenngoc2505/lotus/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenngoc2505/lotus/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenngoc2505/lotus/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenngoc2505/lotus/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyenngoc2505/lotus/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenngoc2505/lotus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenngoc2505/lotus/merges","archive_url":"https://api.github.com/repos/nguyenngoc2505/lotus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenngoc2505/lotus/downloads","issues_url":"https://api.github.com/repos/nguyenngoc2505/lotus/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenngoc2505/lotus/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenngoc2505/lotus/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenngoc2505/lotus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenngoc2505/lotus/labels{/name}","releases_url":"https://api.github.com/repos/nguyenngoc2505/lotus/releases{/id}","created_at":"2015-03-31T03:07:51Z","updated_at":"2015-03-31T03:07:52Z","pushed_at":"2015-04-09T09:00:30Z","git_url":"git://github.com/nguyenngoc2505/lotus.git","ssh_url":"git@github.com:nguyenngoc2505/lotus.git","clone_url":"https://github.com/nguyenngoc2505/lotus.git","svn_url":"https://github.com/nguyenngoc2505/lotus","homepage":"http://lotusrb.org","size":3374,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lotus:master","ref":"master","sha":"31f392a2b58e08da14c0c3f106392f3a2160cff5","user":{"login":"lotus","id":3210273,"avatar_url":"https://avatars.githubusercontent.com/u/3210273?v=3","gravatar_id":"","url":"https://api.github.com/users/lotus","html_url":"https://github.com/lotus","followers_url":"https://api.github.com/users/lotus/followers","following_url":"https://api.github.com/users/lotus/following{/other_user}","gists_url":"https://api.github.com/users/lotus/gists{/gist_id}","starred_url":"https://api.github.com/users/lotus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lotus/subscriptions","organizations_url":"https://api.github.com/users/lotus/orgs","repos_url":"https://api.github.com/users/lotus/repos","events_url":"https://api.github.com/users/lotus/events{/privacy}","received_events_url":"https://api.github.com/users/lotus/received_events","type":"Organization","site_admin":false},"repo":{"id":12004006,"name":"lotus","full_name":"lotus/lotus","owner":{"login":"lotus","id":3210273,"avatar_url":"https://avatars.githubusercontent.com/u/3210273?v=3","gravatar_id":"","url":"https://api.github.com/users/lotus","html_url":"https://github.com/lotus","followers_url":"https://api.github.com/users/lotus/followers","following_url":"https://api.github.com/users/lotus/following{/other_user}","gists_url":"https://api.github.com/users/lotus/gists{/gist_id}","starred_url":"https://api.github.com/users/lotus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lotus/subscriptions","organizations_url":"https://api.github.com/users/lotus/orgs","repos_url":"https://api.github.com/users/lotus/repos","events_url":"https://api.github.com/users/lotus/events{/privacy}","received_events_url":"https://api.github.com/users/lotus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lotus/lotus","description":"A complete web framework for Ruby","fork":false,"url":"https://api.github.com/repos/lotus/lotus","forks_url":"https://api.github.com/repos/lotus/lotus/forks","keys_url":"https://api.github.com/repos/lotus/lotus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lotus/lotus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lotus/lotus/teams","hooks_url":"https://api.github.com/repos/lotus/lotus/hooks","issue_events_url":"https://api.github.com/repos/lotus/lotus/issues/events{/number}","events_url":"https://api.github.com/repos/lotus/lotus/events","assignees_url":"https://api.github.com/repos/lotus/lotus/assignees{/user}","branches_url":"https://api.github.com/repos/lotus/lotus/branches{/branch}","tags_url":"https://api.github.com/repos/lotus/lotus/tags","blobs_url":"https://api.github.com/repos/lotus/lotus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lotus/lotus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lotus/lotus/git/refs{/sha}","trees_url":"https://api.github.com/repos/lotus/lotus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lotus/lotus/statuses/{sha}","languages_url":"https://api.github.com/repos/lotus/lotus/languages","stargazers_url":"https://api.github.com/repos/lotus/lotus/stargazers","contributors_url":"https://api.github.com/repos/lotus/lotus/contributors","subscribers_url":"https://api.github.com/repos/lotus/lotus/subscribers","subscription_url":"https://api.github.com/repos/lotus/lotus/subscription","commits_url":"https://api.github.com/repos/lotus/lotus/commits{/sha}","git_commits_url":"https://api.github.com/repos/lotus/lotus/git/commits{/sha}","comments_url":"https://api.github.com/repos/lotus/lotus/comments{/number}","issue_comment_url":"https://api.github.com/repos/lotus/lotus/issues/comments{/number}","contents_url":"https://api.github.com/repos/lotus/lotus/contents/{+path}","compare_url":"https://api.github.com/repos/lotus/lotus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lotus/lotus/merges","archive_url":"https://api.github.com/repos/lotus/lotus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lotus/lotus/downloads","issues_url":"https://api.github.com/repos/lotus/lotus/issues{/number}","pulls_url":"https://api.github.com/repos/lotus/lotus/pulls{/number}","milestones_url":"https://api.github.com/repos/lotus/lotus/milestones{/number}","notifications_url":"https://api.github.com/repos/lotus/lotus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lotus/lotus/labels{/name}","releases_url":"https://api.github.com/repos/lotus/lotus/releases{/id}","created_at":"2013-08-09T15:24:44Z","updated_at":"2015-04-08T09:49:28Z","pushed_at":"2015-04-09T09:00:30Z","git_url":"git://github.com/lotus/lotus.git","ssh_url":"git@github.com:lotus/lotus.git","clone_url":"https://github.com/lotus/lotus.git","svn_url":"https://github.com/lotus/lotus","homepage":"http://lotusrb.org","size":3393,"stargazers_count":1664,"watchers_count":1664,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":148,"mirror_url":null,"open_issues_count":21,"forks":148,"open_issues":21,"watchers":1664,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lotus/lotus/pulls/199"},"html":{"href":"https://github.com/lotus/lotus/pull/199"},"issue":{"href":"https://api.github.com/repos/lotus/lotus/issues/199"},"comments":{"href":"https://api.github.com/repos/lotus/lotus/issues/199/comments"},"review_comments":{"href":"https://api.github.com/repos/lotus/lotus/pulls/199/comments"},"review_comment":{"href":"https://api.github.com/repos/lotus/lotus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lotus/lotus/pulls/199/commits"},"statuses":{"href":"https://api.github.com/repos/lotus/lotus/statuses/d65add283e17a714a02e73e7197f79197da8b886"}}}}