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.8.3 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.8.2 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.8.1 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.8.0 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.7.20 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.7.19 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.7.18 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.7.17 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.7.16 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.7.15 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.7.14 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.7.13 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.7.12 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.7.11 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.7.10 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.7.9 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.7.8 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.7.7 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.7.6 app/lib/actions/foreman/architecture/destroy.rb
foreman-tasks-0.7.5 app/lib/actions/foreman/architecture/destroy.rb