Sha256: e3955801adf4303d9a32a1d67a3e000dae69451bf2178f8f42e933372110b3a1

Contents?: true

Size: 574 Bytes

Versions: 66

Compression:

Stored size: 574 Bytes

Contents

module Actions
  module Foreman
    module Architecture
      class Destroy < Actions::EntryAction

        def plan(architecture)
          action_subject(architecture)
        end

        def humanized_name
          _("Delete architecture")
        end

        def humanized_input
          input[:architecture] && input[:architecture][:name]
        end

        def cli_example
          return unless input[:architecture]
        <<-EXAMPLE
hammer architecture delete --id '#{task_input[:architecture][:id]}'
        EXAMPLE
        end

      end
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
foreman-tasks-0.6.0 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.5.7 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.5.6 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.5.5 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.5.4 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.5.3 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.5.2 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.5.1 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.5.0 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.4.0 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.3.6 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.3.5 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.3.4 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.3.3 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.3.2 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.3.1 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.3.0 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.2.2 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.2.1 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.2.0 app/lib/actions/foreman/architecture/destroy.rb