Sha256: a926c809ec8a7019eeda7b8e2627384391aa5f7727700a088356692733b4161c

Contents?: true

Size: 625 Bytes

Versions: 3

Compression:

Stored size: 625 Bytes

Contents

module KatelloForemanEngine
  module Actions
    class EnvironmentCreate < Dynflow::Action

      def self.subscribe
        Katello::Actions::EnvironmentCreate
      end

      def plan(env)
        unless env.library?
          plan_self 'org_label' => env.organization.label, 'label' => env.label, 'content_view_id' => 'env'
        end
      end

      input_format do
        param :org_label, String
        param :label, String
        param :content_view_id, String
      end

      def run
        Bindings.environment_create(input['content_view_id'], input['org_label'], input['label'])
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
katello-foreman-engine-0.0.3 lib/katello_foreman_engine/actions/environment_create.rb
katello-foreman-engine-0.0.2 lib/katello_foreman_engine/actions/environment_create.rb
katello-foreman-engine-0.0.1 lib/katello_foreman_engine/actions/environment_create.rb