{"action":"created","comment":{"url":"https://api.github.com/repos/crowbar/crowbar-client/pulls/comments/46091768","id":46091768,"diff_hunk":"@@ -0,0 +1,123 @@\n+#\n+# Copyright 2015, SUSE Linux GmbH\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+#\n+\n+module Crowbar\n+  module Client\n+    module App\n+      class Installer < Base\n+        desc \"status\",\n+          \"Show current installer status\"\n+\n+        long_desc <<-LONGDESC\n+          `status` will print out information about the current status\n+          of the installer. You can display the list in different output\n+          formats and you can filter the list by any search criteria.\n+\n+          With --format <format> option you can choose an output format\n+          with the available options table, json or plain. You can also\n+          use the shortcut options --table, --json or --plain.\n+\n+          With --filter <filter> option you can limit the result of\n+          printed out elements. You can use any substring that is part\n+          of the found elements.\n+        LONGDESC\n+\n+        method_option :format,\n+          type: :string,\n+          default: \"table\",\n+          banner: \"<format>\",\n+          desc: \"Format of the output, valid formats are table, json or plain\"\n+\n+        method_option :table,\n+          type: :boolean,\n+          default: false,\n+          aliases: [],\n+          desc: \"Format output as table, a shortcut for --format table option\"\n+\n+        method_option :json,\n+          type: :boolean,\n+          default: false,\n+          aliases: [],\n+          desc: \"Format output as table, a shortcut for --format table option\"\n+\n+        method_option :plain,\n+          type: :boolean,\n+          default: false,\n+          aliases: [],\n+          desc: \"Format output as table, a shortcut for --format table option\"\n+\n+        method_option :filter,\n+          type: :string,\n+          default: nil,\n+          banner: \"<filter>\",\n+          desc: \"Filter by criteria, display only data that contains filter\"\n+\n+        def status\n+          Command::Installer::Status.new(\n+            *command_params\n+          ).execute\n+        rescue SimpleCatchableError => e\n+          err e.message, 1\n+        end\n+\n+        desc \"start\",\n+          \"Start the insallation of Crowbar\"\n+\n+        long_desc <<-LONGDESC\n+          `start` will trigger the installation.\n+        LONGDESC\n+\n+        method_option :format,","path":"lib/crowbar/client/app/installer.rb","position":83,"original_position":83,"commit_id":"8297e03bf4d0434537d663c74682648d67e1e40a","original_commit_id":"8297e03bf4d0434537d663c74682648d67e1e40a","user":{"login":"tboerger","id":156964,"avatar_url":"https://avatars.githubusercontent.com/u/156964?v=3","gravatar_id":"","url":"https://api.github.com/users/tboerger","html_url":"https://github.com/tboerger","followers_url":"https://api.github.com/users/tboerger/followers","following_url":"https://api.github.com/users/tboerger/following{/other_user}","gists_url":"https://api.github.com/users/tboerger/gists{/gist_id}","starred_url":"https://api.github.com/users/tboerger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tboerger/subscriptions","organizations_url":"https://api.github.com/users/tboerger/orgs","repos_url":"https://api.github.com/users/tboerger/repos","events_url":"https://api.github.com/users/tboerger/events{/privacy}","received_events_url":"https://api.github.com/users/tboerger/received_events","type":"User","site_admin":false},"body":"The `start` command doesn't have any options.","created_at":"2015-11-29T12:54:34Z","updated_at":"2015-11-29T12:54:34Z","html_url":"https://github.com/crowbar/crowbar-client/pull/38#discussion_r46091768","pull_request_url":"https://api.github.com/repos/crowbar/crowbar-client/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/crowbar/crowbar-client/pulls/comments/46091768"},"html":{"href":"https://github.com/crowbar/crowbar-client/pull/38#discussion_r46091768"},"pull_request":{"href":"https://api.github.com/repos/crowbar/crowbar-client/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/crowbar/crowbar-client/pulls/38","id":51988136,"html_url":"https://github.com/crowbar/crowbar-client/pull/38","diff_url":"https://github.com/crowbar/crowbar-client/pull/38.diff","patch_url":"https://github.com/crowbar/crowbar-client/pull/38.patch","issue_url":"https://api.github.com/repos/crowbar/crowbar-client/issues/38","number":38,"state":"open","locked":false,"title":"add installer subcommand","user":{"login":"MaximilianMeister","id":5364817,"avatar_url":"https://avatars.githubusercontent.com/u/5364817?v=3","gravatar_id":"","url":"https://api.github.com/users/MaximilianMeister","html_url":"https://github.com/MaximilianMeister","followers_url":"https://api.github.com/users/MaximilianMeister/followers","following_url":"https://api.github.com/users/MaximilianMeister/following{/other_user}","gists_url":"https://api.github.com/users/MaximilianMeister/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximilianMeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximilianMeister/subscriptions","organizations_url":"https://api.github.com/users/MaximilianMeister/orgs","repos_url":"https://api.github.com/users/MaximilianMeister/repos","events_url":"https://api.github.com/users/MaximilianMeister/events{/privacy}","received_events_url":"https://api.github.com/users/MaximilianMeister/received_events","type":"User","site_admin":false},"body":"depends on https://github.com/crowbar/crowbar-core/pull/145","created_at":"2015-11-27T12:02:50Z","updated_at":"2015-11-29T12:54:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf4d32d293af4003bbd615c806aab13976341d83","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/crowbar/crowbar-client/pulls/38/commits","review_comments_url":"https://api.github.com/repos/crowbar/crowbar-client/pulls/38/comments","review_comment_url":"https://api.github.com/repos/crowbar/crowbar-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crowbar/crowbar-client/issues/38/comments","statuses_url":"https://api.github.com/repos/crowbar/crowbar-client/statuses/8297e03bf4d0434537d663c74682648d67e1e40a","head":{"label":"MaximilianMeister:install-subcommand","ref":"install-subcommand","sha":"8297e03bf4d0434537d663c74682648d67e1e40a","user":{"login":"MaximilianMeister","id":5364817,"avatar_url":"https://avatars.githubusercontent.com/u/5364817?v=3","gravatar_id":"","url":"https://api.github.com/users/MaximilianMeister","html_url":"https://github.com/MaximilianMeister","followers_url":"https://api.github.com/users/MaximilianMeister/followers","following_url":"https://api.github.com/users/MaximilianMeister/following{/other_user}","gists_url":"https://api.github.com/users/MaximilianMeister/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximilianMeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximilianMeister/subscriptions","organizations_url":"https://api.github.com/users/MaximilianMeister/orgs","repos_url":"https://api.github.com/users/MaximilianMeister/repos","events_url":"https://api.github.com/users/MaximilianMeister/events{/privacy}","received_events_url":"https://api.github.com/users/MaximilianMeister/received_events","type":"User","site_admin":false},"repo":{"id":44757478,"name":"crowbar-client","full_name":"MaximilianMeister/crowbar-client","owner":{"login":"MaximilianMeister","id":5364817,"avatar_url":"https://avatars.githubusercontent.com/u/5364817?v=3","gravatar_id":"","url":"https://api.github.com/users/MaximilianMeister","html_url":"https://github.com/MaximilianMeister","followers_url":"https://api.github.com/users/MaximilianMeister/followers","following_url":"https://api.github.com/users/MaximilianMeister/following{/other_user}","gists_url":"https://api.github.com/users/MaximilianMeister/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximilianMeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximilianMeister/subscriptions","organizations_url":"https://api.github.com/users/MaximilianMeister/orgs","repos_url":"https://api.github.com/users/MaximilianMeister/repos","events_url":"https://api.github.com/users/MaximilianMeister/events{/privacy}","received_events_url":"https://api.github.com/users/MaximilianMeister/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MaximilianMeister/crowbar-client","description":"Command line client for Crowbar","fork":true,"url":"https://api.github.com/repos/MaximilianMeister/crowbar-client","forks_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/forks","keys_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/teams","hooks_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/hooks","issue_events_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/issues/events{/number}","events_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/events","assignees_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/assignees{/user}","branches_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/branches{/branch}","tags_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/tags","blobs_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/statuses/{sha}","languages_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/languages","stargazers_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/stargazers","contributors_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/contributors","subscribers_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/subscribers","subscription_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/subscription","commits_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/contents/{+path}","compare_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/merges","archive_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/downloads","issues_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/issues{/number}","pulls_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/pulls{/number}","milestones_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/milestones{/number}","notifications_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/labels{/name}","releases_url":"https://api.github.com/repos/MaximilianMeister/crowbar-client/releases{/id}","created_at":"2015-10-22T16:13:20Z","updated_at":"2015-10-22T16:13:21Z","pushed_at":"2015-11-27T14:37:24Z","git_url":"git://github.com/MaximilianMeister/crowbar-client.git","ssh_url":"git@github.com:MaximilianMeister/crowbar-client.git","clone_url":"https://github.com/MaximilianMeister/crowbar-client.git","svn_url":"https://github.com/MaximilianMeister/crowbar-client","homepage":"","size":194,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"crowbar:master","ref":"master","sha":"3627fe236eb4697b2114d2699880d4eac0a12b96","user":{"login":"crowbar","id":2910205,"avatar_url":"https://avatars.githubusercontent.com/u/2910205?v=3","gravatar_id":"","url":"https://api.github.com/users/crowbar","html_url":"https://github.com/crowbar","followers_url":"https://api.github.com/users/crowbar/followers","following_url":"https://api.github.com/users/crowbar/following{/other_user}","gists_url":"https://api.github.com/users/crowbar/gists{/gist_id}","starred_url":"https://api.github.com/users/crowbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowbar/subscriptions","organizations_url":"https://api.github.com/users/crowbar/orgs","repos_url":"https://api.github.com/users/crowbar/repos","events_url":"https://api.github.com/users/crowbar/events{/privacy}","received_events_url":"https://api.github.com/users/crowbar/received_events","type":"Organization","site_admin":false},"repo":{"id":39223531,"name":"crowbar-client","full_name":"crowbar/crowbar-client","owner":{"login":"crowbar","id":2910205,"avatar_url":"https://avatars.githubusercontent.com/u/2910205?v=3","gravatar_id":"","url":"https://api.github.com/users/crowbar","html_url":"https://github.com/crowbar","followers_url":"https://api.github.com/users/crowbar/followers","following_url":"https://api.github.com/users/crowbar/following{/other_user}","gists_url":"https://api.github.com/users/crowbar/gists{/gist_id}","starred_url":"https://api.github.com/users/crowbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowbar/subscriptions","organizations_url":"https://api.github.com/users/crowbar/orgs","repos_url":"https://api.github.com/users/crowbar/repos","events_url":"https://api.github.com/users/crowbar/events{/privacy}","received_events_url":"https://api.github.com/users/crowbar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crowbar/crowbar-client","description":"Command line client for Crowbar","fork":false,"url":"https://api.github.com/repos/crowbar/crowbar-client","forks_url":"https://api.github.com/repos/crowbar/crowbar-client/forks","keys_url":"https://api.github.com/repos/crowbar/crowbar-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crowbar/crowbar-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crowbar/crowbar-client/teams","hooks_url":"https://api.github.com/repos/crowbar/crowbar-client/hooks","issue_events_url":"https://api.github.com/repos/crowbar/crowbar-client/issues/events{/number}","events_url":"https://api.github.com/repos/crowbar/crowbar-client/events","assignees_url":"https://api.github.com/repos/crowbar/crowbar-client/assignees{/user}","branches_url":"https://api.github.com/repos/crowbar/crowbar-client/branches{/branch}","tags_url":"https://api.github.com/repos/crowbar/crowbar-client/tags","blobs_url":"https://api.github.com/repos/crowbar/crowbar-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crowbar/crowbar-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crowbar/crowbar-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/crowbar/crowbar-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crowbar/crowbar-client/statuses/{sha}","languages_url":"https://api.github.com/repos/crowbar/crowbar-client/languages","stargazers_url":"https://api.github.com/repos/crowbar/crowbar-client/stargazers","contributors_url":"https://api.github.com/repos/crowbar/crowbar-client/contributors","subscribers_url":"https://api.github.com/repos/crowbar/crowbar-client/subscribers","subscription_url":"https://api.github.com/repos/crowbar/crowbar-client/subscription","commits_url":"https://api.github.com/repos/crowbar/crowbar-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/crowbar/crowbar-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/crowbar/crowbar-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/crowbar/crowbar-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/crowbar/crowbar-client/contents/{+path}","compare_url":"https://api.github.com/repos/crowbar/crowbar-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crowbar/crowbar-client/merges","archive_url":"https://api.github.com/repos/crowbar/crowbar-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crowbar/crowbar-client/downloads","issues_url":"https://api.github.com/repos/crowbar/crowbar-client/issues{/number}","pulls_url":"https://api.github.com/repos/crowbar/crowbar-client/pulls{/number}","milestones_url":"https://api.github.com/repos/crowbar/crowbar-client/milestones{/number}","notifications_url":"https://api.github.com/repos/crowbar/crowbar-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crowbar/crowbar-client/labels{/name}","releases_url":"https://api.github.com/repos/crowbar/crowbar-client/releases{/id}","created_at":"2015-07-16T22:29:43Z","updated_at":"2015-11-13T08:01:27Z","pushed_at":"2015-11-27T14:37:24Z","git_url":"git://github.com/crowbar/crowbar-client.git","ssh_url":"git@github.com:crowbar/crowbar-client.git","clone_url":"https://github.com/crowbar/crowbar-client.git","svn_url":"https://github.com/crowbar/crowbar-client","homepage":"","size":187,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":8,"forks":7,"open_issues":8,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crowbar/crowbar-client/pulls/38"},"html":{"href":"https://github.com/crowbar/crowbar-client/pull/38"},"issue":{"href":"https://api.github.com/repos/crowbar/crowbar-client/issues/38"},"comments":{"href":"https://api.github.com/repos/crowbar/crowbar-client/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/crowbar/crowbar-client/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/crowbar/crowbar-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crowbar/crowbar-client/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/crowbar/crowbar-client/statuses/8297e03bf4d0434537d663c74682648d67e1e40a"}}}}