GitHub PullRequestReviewCommentEvent at 2014-03-18 21:02:54
Repository: hammer-cli-katello
Actor: komidore64
Payload: {"comment":{"url":"https://api.github.com/repos/Katello/hammer-cli-katello/pulls/comments/10725555","id":10725555,"diff_hunk":"@@ -0,0 +1,155 @@\n+require 'hammer_cli_katello/content_view_puppet_module'\n+require 'hammer_cli_katello/filter'\n+require 'hammer_cli_katello/content_view_version'\n+\n+module HammerCLIKatello\n+\n+  class ContentView < HammerCLI::Apipie::Command\n+    resource KatelloApi::Resources::ContentView\n+\n+    class ListCommand < HammerCLIKatello::ListCommand\n+      output do\n+        field :id, \"Content View ID\"\n+        field :name, \"Name\"\n+        field :label, \"Label\"\n+        field :composite, \"Composite\"\n+        field :repository_ids, \"Repository IDs\", Fields::List\n+      end\n+\n+      apipie_options\n+    end\n+\n+    class InfoCommand < HammerCLIKatello::InfoCommand\n+      output do\n+        field :id, \"ID\"\n+        field :name, \"Name\"\n+        field :label, \"Label\"\n+        field :composite, \"Composite\"\n+        field :description, \"Description\"\n+\n+        from :organization do\n+          field :name, \"Organization\"\n+        end\n+\n+        collection :repositories, \"Repositories\" do\n+          field :id, \"ID\"\n+          field :name, \"Name\"\n+          field :label, \"Label\"\n+        end\n+\n+        collection :puppet_modules, \"Puppet Modules\" do\n+          field :id, \"ID\"\n+          field :uuid, \"UUID\", Fields::Field, :hide_blank => true\n+          field :name, \"Name\"\n+          field :author, \"Author\"\n+          field :created_at, \"Created\", Fields::Date\n+          field :updated_at, \"Updated\", Fields::Date\n+        end\n+\n+        collection :environments, \"Environments\" do\n+          field :id, \"ID\"\n+          field :name, \"Name\"\n+        end\n+\n+        collection :versions, \"Versions\" do\n+          field :id, \"ID\"\n+          field :version, \"Version\"\n+          field :published, \"Published\", Fields::Date\n+        end\n+\n+        collection :components, \"Components\" do\n+          field :id, \"ID\"\n+          field :name, \"Name\"\n+        end\n+      end\n+\n+      apipie_options\n+    end\n+\n+    class CreateCommand < HammerCLIKatello::CreateCommand\n+      success_message \"Content view created\"\n+      failure_message \"Could not create the content view\"\n+\n+      option [\"--composite\"], :flag, \"Create a composite content view\"\n+      apipie_options\n+    end\n+\n+    class UpdateCommand < HammerCLIKatello::UpdateCommand\n+      success_message \"Content view updated\"\n+      failure_message \"Could not update the content view\"\n+\n+      apipie_options\n+    end\n+\n+    class PublishCommand < HammerCLIForemanTasks::AsyncCommand\n+      action :publish\n+      command_name \"publish\"\n+\n+      success_message \"Content view is being published with task %{id}s\"\n+      failure_message \"Could not publish the content view\"\n+\n+      apipie_options\n+    end\n+\n+    class AddContentViewVersionCommand < HammerCLIKatello::AddAssociatedCommand\n+      command_name 'add-version'\n+\n+      def self.setup_associated_identifier_options\n+        option '--version', 'VERSION_NAME', ' ',\n+               :attribute_name => :associated_name\n+        option '--version-id', 'VERSION_ID', ' ',\n+               :attribute_name => :associated_id\n+      end\n+\n+      def association_name(plural = false)\n+        plural ? \"components\" : \"component\"\n+      end\n+\n+      associated_resource KatelloApi::Resources::ContentViewVersion\n+      apipie_options\n+\n+      success_message \"The component version has been added\"\n+      failure_message \"Could not add version\"\n+    end\n+\n+    class RemoveContentViewVersionCommand < HammerCLIKatello::RemoveAssociatedCommand\n+      command_name 'remove-version'\n+\n+      def self.setup_associated_identifier_options\n+        option '--version', 'VERSION_NAME', ' ',\n+               :attribute_name => :associated_name\n+        option '--version-id', 'VERSION_ID', ' ',\n+               :attribute_name => :associated_id\n+      end\n+\n+      def association_name(plural = false)\n+        plural ? \"components\" : \"component\"\n+      end\n+\n+      associated_resource KatelloApi::Resources::ContentViewVersion\n+      apipie_options\n+\n+      success_message \"The component version has been removed\"\n+      failure_message \"Could not remove version\"\n+    end\n+\n+    include HammerCLIKatello::AssociatingCommands::Repository\n+\n+    autoload_subcommands\n+\n+    subcommand 'puppet-module',\n+               HammerCLIKatello::ContentViewPuppetModule.desc,\n+               HammerCLIKatello::ContentViewPuppetModule\n+\n+    subcommand 'filter',","path":"lib/hammer_cli_katello/content_view.rb","position":144,"original_position":144,"commit_id":"4a80838f6438212460b0431191e55fac18e2384f","original_commit_id":"4a80838f6438212460b0431191e55fac18e2384f","user":{"login":"komidore64","id":1020555,"avatar_url":"https://avatars.githubusercontent.com/u/1020555?","gravatar_id":"322bf4d29695c86854700624da8649fb","url":"https://api.github.com/users/komidore64","html_url":"https://github.com/komidore64","followers_url":"https://api.github.com/users/komidore64/followers","following_url":"https://api.github.com/users/komidore64/following{/other_user}","gists_url":"https://api.github.com/users/komidore64/gists{/gist_id}","starred_url":"https://api.github.com/users/komidore64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komidore64/subscriptions","organizations_url":"https://api.github.com/users/komidore64/orgs","repos_url":"https://api.github.com/users/komidore64/repos","events_url":"https://api.github.com/users/komidore64/events{/privacy}","received_events_url":"https://api.github.com/users/komidore64/received_events","type":"User","site_admin":false},"body":"`HammerCLIKatello::Filter.command_name` instead of `'filter'` ?","created_at":"2014-03-18T21:02:54Z","updated_at":"2014-03-18T21:02:54Z","html_url":"https://github.com/Katello/hammer-cli-katello/pull/108#discussion_r10725555","pull_request_url":"https://api.github.com/repos/Katello/hammer-cli-katello/pulls/108","_links":{"self":{"href":"https://api.github.com/repos/Katello/hammer-cli-katello/pulls/comments/10725555"},"html":{"href":"https://github.com/Katello/hammer-cli-katello/pull/108#discussion_r10725555"},"pull_request":{"href":"https://api.github.com/repos/Katello/hammer-cli-katello/pulls/108"}}}}