{"action":"created","comment":{"url":"https://api.github.com/repos/cvent/workup/pulls/comments/100220874","pull_request_review_id":20920419,"id":100220874,"diff_hunk":"@@ -47,53 +46,11 @@ def initialize(*args)\n       super(*args)\n     end\n \n-    no_commands do\n-      def chef_lib(description)\n-        log.info description\n-        return_code = Workup::Helpers.silence { yield }\n-        if return_code.zero?\n-          log.debug \"OK\\n\"\n-        else\n-          log.error \"Failure\\n\"\n-          exit return_code\n-        end\n-      end\n-    end\n-\n-    desc 'default', 'Default task'\n-    def default\n-      Workup::Helpers.prompt_for_password if options[:password]\n-      chef_zero\n-      workup\n-    end\n-\n-    desc 'chef_zero', 'Create the chef-zero directory'\n-    def chef_zero\n-      Workup::Helpers.initialize_files(options[:workup_dir])\n-\n-      policyfile = options[:policyfile]\n-      policyfile = File.join(Dir.pwd, policyfile) if Pathname.new(policyfile).relative?\n-\n-      chefzero_path = File.join(options[:workup_dir], 'chef-zero')\n-\n-      chef_lib('Updating lock file... ') do\n-        ChefDK::Command::Update.new.run([policyfile])\n-      end\n-\n-      chef_lib('Creating chef-zero directory... ') do\n-        ChefDK::Command::Export.new.run(['--force', policyfile, chefzero_path])\n-      end\n-    end\n-\n-    desc 'workup', 'Run workup'\n+    desc 'workup', 'Run Workup'\n     def workup\n-      log.info \"Starting workup\\n\"\n-      Workup::Helpers.initialize_files(options[:workup_dir])\n-      Workup::Helpers.prompt_for_password if options[:password]\n-      Workup::Helpers.chef_client(File.join(options[:workup_dir], 'client.rb'),\n-                                  options[:dry_run])\n+      Workup::Runner.new(log, options).run","path":"lib/workup/application.rb","position":62,"original_position":62,"commit_id":"8289944c249c22b1be159120bd1d5a749507f40b","original_commit_id":"8289944c249c22b1be159120bd1d5a749507f40b","user":{"login":"brentm5","id":1045510,"avatar_url":"https://avatars.githubusercontent.com/u/1045510?v=3","gravatar_id":"","url":"https://api.github.com/users/brentm5","html_url":"https://github.com/brentm5","followers_url":"https://api.github.com/users/brentm5/followers","following_url":"https://api.github.com/users/brentm5/following{/other_user}","gists_url":"https://api.github.com/users/brentm5/gists{/gist_id}","starred_url":"https://api.github.com/users/brentm5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brentm5/subscriptions","organizations_url":"https://api.github.com/users/brentm5/orgs","repos_url":"https://api.github.com/users/brentm5/repos","events_url":"https://api.github.com/users/brentm5/events{/privacy}","received_events_url":"https://api.github.com/users/brentm5/received_events","type":"User","site_admin":false},"body":"Moved everything that has to do with running workup into this script (probably should make similar objects for the workup workspace / move the helpers into those appropriate classes (for example chefdk functions that run chef should move from helpers into the runner. Or whatnot","created_at":"2017-02-09T02:38:44Z","updated_at":"2017-02-09T02:38:44Z","html_url":"https://github.com/cvent/workup/pull/21#discussion_r100220874","pull_request_url":"https://api.github.com/repos/cvent/workup/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/cvent/workup/pulls/comments/100220874"},"html":{"href":"https://github.com/cvent/workup/pull/21#discussion_r100220874"},"pull_request":{"href":"https://api.github.com/repos/cvent/workup/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/cvent/workup/pulls/21","id":105346287,"html_url":"https://github.com/cvent/workup/pull/21","diff_url":"https://github.com/cvent/workup/pull/21.diff","patch_url":"https://github.com/cvent/workup/pull/21.patch","issue_url":"https://api.github.com/repos/cvent/workup/issues/21","number":21,"state":"open","locked":false,"title":"Cleanup workup cli methods","user":{"login":"brentm5","id":1045510,"avatar_url":"https://avatars.githubusercontent.com/u/1045510?v=3","gravatar_id":"","url":"https://api.github.com/users/brentm5","html_url":"https://github.com/brentm5","followers_url":"https://api.github.com/users/brentm5/followers","following_url":"https://api.github.com/users/brentm5/following{/other_user}","gists_url":"https://api.github.com/users/brentm5/gists{/gist_id}","starred_url":"https://api.github.com/users/brentm5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brentm5/subscriptions","organizations_url":"https://api.github.com/users/brentm5/orgs","repos_url":"https://api.github.com/users/brentm5/repos","events_url":"https://api.github.com/users/brentm5/events{/privacy}","received_events_url":"https://api.github.com/users/brentm5/received_events","type":"User","site_admin":false},"body":"- Closes #17","created_at":"2017-02-09T02:04:00Z","updated_at":"2017-02-09T02:38:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77ba76f375c1cfc565633cd8a64c52780c9b2425","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cvent/workup/pulls/21/commits","review_comments_url":"https://api.github.com/repos/cvent/workup/pulls/21/comments","review_comment_url":"https://api.github.com/repos/cvent/workup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cvent/workup/issues/21/comments","statuses_url":"https://api.github.com/repos/cvent/workup/statuses/8289944c249c22b1be159120bd1d5a749507f40b","head":{"label":"cvent:bm-cleanup-commands","ref":"bm-cleanup-commands","sha":"8289944c249c22b1be159120bd1d5a749507f40b","user":{"login":"cvent","id":5034428,"avatar_url":"https://avatars.githubusercontent.com/u/5034428?v=3","gravatar_id":"","url":"https://api.github.com/users/cvent","html_url":"https://github.com/cvent","followers_url":"https://api.github.com/users/cvent/followers","following_url":"https://api.github.com/users/cvent/following{/other_user}","gists_url":"https://api.github.com/users/cvent/gists{/gist_id}","starred_url":"https://api.github.com/users/cvent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvent/subscriptions","organizations_url":"https://api.github.com/users/cvent/orgs","repos_url":"https://api.github.com/users/cvent/repos","events_url":"https://api.github.com/users/cvent/events{/privacy}","received_events_url":"https://api.github.com/users/cvent/received_events","type":"Organization","site_admin":false},"repo":{"id":66967110,"name":"workup","full_name":"cvent/workup","owner":{"login":"cvent","id":5034428,"avatar_url":"https://avatars.githubusercontent.com/u/5034428?v=3","gravatar_id":"","url":"https://api.github.com/users/cvent","html_url":"https://github.com/cvent","followers_url":"https://api.github.com/users/cvent/followers","following_url":"https://api.github.com/users/cvent/following{/other_user}","gists_url":"https://api.github.com/users/cvent/gists{/gist_id}","starred_url":"https://api.github.com/users/cvent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvent/subscriptions","organizations_url":"https://api.github.com/users/cvent/orgs","repos_url":"https://api.github.com/users/cvent/repos","events_url":"https://api.github.com/users/cvent/events{/privacy}","received_events_url":"https://api.github.com/users/cvent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cvent/workup","description":"Workstation provisioning tool","fork":false,"url":"https://api.github.com/repos/cvent/workup","forks_url":"https://api.github.com/repos/cvent/workup/forks","keys_url":"https://api.github.com/repos/cvent/workup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cvent/workup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cvent/workup/teams","hooks_url":"https://api.github.com/repos/cvent/workup/hooks","issue_events_url":"https://api.github.com/repos/cvent/workup/issues/events{/number}","events_url":"https://api.github.com/repos/cvent/workup/events","assignees_url":"https://api.github.com/repos/cvent/workup/assignees{/user}","branches_url":"https://api.github.com/repos/cvent/workup/branches{/branch}","tags_url":"https://api.github.com/repos/cvent/workup/tags","blobs_url":"https://api.github.com/repos/cvent/workup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cvent/workup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cvent/workup/git/refs{/sha}","trees_url":"https://api.github.com/repos/cvent/workup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cvent/workup/statuses/{sha}","languages_url":"https://api.github.com/repos/cvent/workup/languages","stargazers_url":"https://api.github.com/repos/cvent/workup/stargazers","contributors_url":"https://api.github.com/repos/cvent/workup/contributors","subscribers_url":"https://api.github.com/repos/cvent/workup/subscribers","subscription_url":"https://api.github.com/repos/cvent/workup/subscription","commits_url":"https://api.github.com/repos/cvent/workup/commits{/sha}","git_commits_url":"https://api.github.com/repos/cvent/workup/git/commits{/sha}","comments_url":"https://api.github.com/repos/cvent/workup/comments{/number}","issue_comment_url":"https://api.github.com/repos/cvent/workup/issues/comments{/number}","contents_url":"https://api.github.com/repos/cvent/workup/contents/{+path}","compare_url":"https://api.github.com/repos/cvent/workup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cvent/workup/merges","archive_url":"https://api.github.com/repos/cvent/workup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cvent/workup/downloads","issues_url":"https://api.github.com/repos/cvent/workup/issues{/number}","pulls_url":"https://api.github.com/repos/cvent/workup/pulls{/number}","milestones_url":"https://api.github.com/repos/cvent/workup/milestones{/number}","notifications_url":"https://api.github.com/repos/cvent/workup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cvent/workup/labels{/name}","releases_url":"https://api.github.com/repos/cvent/workup/releases{/id}","deployments_url":"https://api.github.com/repos/cvent/workup/deployments","created_at":"2016-08-30T18:31:47Z","updated_at":"2016-12-10T13:57:52Z","pushed_at":"2017-02-09T02:37:13Z","git_url":"git://github.com/cvent/workup.git","ssh_url":"git@github.com:cvent/workup.git","clone_url":"https://github.com/cvent/workup.git","svn_url":"https://github.com/cvent/workup","homepage":null,"size":159,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":2,"default_branch":"master"}},"base":{"label":"cvent:master","ref":"master","sha":"61dbdcdbe9ec8124dc34b33abc57201fc4d793c5","user":{"login":"cvent","id":5034428,"avatar_url":"https://avatars.githubusercontent.com/u/5034428?v=3","gravatar_id":"","url":"https://api.github.com/users/cvent","html_url":"https://github.com/cvent","followers_url":"https://api.github.com/users/cvent/followers","following_url":"https://api.github.com/users/cvent/following{/other_user}","gists_url":"https://api.github.com/users/cvent/gists{/gist_id}","starred_url":"https://api.github.com/users/cvent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvent/subscriptions","organizations_url":"https://api.github.com/users/cvent/orgs","repos_url":"https://api.github.com/users/cvent/repos","events_url":"https://api.github.com/users/cvent/events{/privacy}","received_events_url":"https://api.github.com/users/cvent/received_events","type":"Organization","site_admin":false},"repo":{"id":66967110,"name":"workup","full_name":"cvent/workup","owner":{"login":"cvent","id":5034428,"avatar_url":"https://avatars.githubusercontent.com/u/5034428?v=3","gravatar_id":"","url":"https://api.github.com/users/cvent","html_url":"https://github.com/cvent","followers_url":"https://api.github.com/users/cvent/followers","following_url":"https://api.github.com/users/cvent/following{/other_user}","gists_url":"https://api.github.com/users/cvent/gists{/gist_id}","starred_url":"https://api.github.com/users/cvent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvent/subscriptions","organizations_url":"https://api.github.com/users/cvent/orgs","repos_url":"https://api.github.com/users/cvent/repos","events_url":"https://api.github.com/users/cvent/events{/privacy}","received_events_url":"https://api.github.com/users/cvent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cvent/workup","description":"Workstation provisioning tool","fork":false,"url":"https://api.github.com/repos/cvent/workup","forks_url":"https://api.github.com/repos/cvent/workup/forks","keys_url":"https://api.github.com/repos/cvent/workup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cvent/workup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cvent/workup/teams","hooks_url":"https://api.github.com/repos/cvent/workup/hooks","issue_events_url":"https://api.github.com/repos/cvent/workup/issues/events{/number}","events_url":"https://api.github.com/repos/cvent/workup/events","assignees_url":"https://api.github.com/repos/cvent/workup/assignees{/user}","branches_url":"https://api.github.com/repos/cvent/workup/branches{/branch}","tags_url":"https://api.github.com/repos/cvent/workup/tags","blobs_url":"https://api.github.com/repos/cvent/workup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cvent/workup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cvent/workup/git/refs{/sha}","trees_url":"https://api.github.com/repos/cvent/workup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cvent/workup/statuses/{sha}","languages_url":"https://api.github.com/repos/cvent/workup/languages","stargazers_url":"https://api.github.com/repos/cvent/workup/stargazers","contributors_url":"https://api.github.com/repos/cvent/workup/contributors","subscribers_url":"https://api.github.com/repos/cvent/workup/subscribers","subscription_url":"https://api.github.com/repos/cvent/workup/subscription","commits_url":"https://api.github.com/repos/cvent/workup/commits{/sha}","git_commits_url":"https://api.github.com/repos/cvent/workup/git/commits{/sha}","comments_url":"https://api.github.com/repos/cvent/workup/comments{/number}","issue_comment_url":"https://api.github.com/repos/cvent/workup/issues/comments{/number}","contents_url":"https://api.github.com/repos/cvent/workup/contents/{+path}","compare_url":"https://api.github.com/repos/cvent/workup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cvent/workup/merges","archive_url":"https://api.github.com/repos/cvent/workup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cvent/workup/downloads","issues_url":"https://api.github.com/repos/cvent/workup/issues{/number}","pulls_url":"https://api.github.com/repos/cvent/workup/pulls{/number}","milestones_url":"https://api.github.com/repos/cvent/workup/milestones{/number}","notifications_url":"https://api.github.com/repos/cvent/workup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cvent/workup/labels{/name}","releases_url":"https://api.github.com/repos/cvent/workup/releases{/id}","deployments_url":"https://api.github.com/repos/cvent/workup/deployments","created_at":"2016-08-30T18:31:47Z","updated_at":"2016-12-10T13:57:52Z","pushed_at":"2017-02-09T02:37:13Z","git_url":"git://github.com/cvent/workup.git","ssh_url":"git@github.com:cvent/workup.git","clone_url":"https://github.com/cvent/workup.git","svn_url":"https://github.com/cvent/workup","homepage":null,"size":159,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cvent/workup/pulls/21"},"html":{"href":"https://github.com/cvent/workup/pull/21"},"issue":{"href":"https://api.github.com/repos/cvent/workup/issues/21"},"comments":{"href":"https://api.github.com/repos/cvent/workup/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/cvent/workup/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/cvent/workup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cvent/workup/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/cvent/workup/statuses/8289944c249c22b1be159120bd1d5a749507f40b"}}}}
{"actor":{"display_login":"brentm5"}}