Sha256: 106397f791110b6a2038d41a53501c50e358e63246ea89d6faa4decc2353df2a

Contents?: true

Size: 619 Bytes

Versions: 16

Compression:

Stored size: 619 Bytes

Contents

module Mccloud
  module Command
    # Same as {Base} except adds the `name` argument for you. This superclass
    # is useful if you're creating a command which should be able to target
    # a specific VM in a multi-VM environment. For example, in a multi-VM
    # environment, `vagrant up` "ups" all defined VMs, but you can specify a
    # name such as `vagrant up web` to target only a specific VM. That name
    # argument is from {NamedBase}. Of course, you can always add it manually
    # yourself, as well.
    class NamedBase < Base
      argument :name, :type => :string, :optional => true
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mccloud-0.1.1 lib/mccloud/command/named_base.rb
mccloud-0.0.28 lib/mccloud/command/named_base.rb
mccloud-0.0.27 lib/mccloud/command/named_base.rb
mccloud-0.0.26 lib/mccloud/command/named_base.rb
mccloud-0.0.25 lib/mccloud/command/named_base.rb
mccloud-0.0.24 lib/mccloud/command/named_base.rb
mccloud-0.0.23 lib/mccloud/command/named_base.rb
mccloud-0.0.22 lib/mccloud/command/named_base.rb
mccloud-0.0.21 lib/mccloud/command/named_base.rb
mccloud-0.0.20 lib/mccloud/command/named_base.rb
mccloud-0.0.19 lib/mccloud/command/named_base.rb
mccloud-0.0.18 lib/mccloud/command/named_base.rb
mccloud-0.0.17 lib/mccloud/command/named_base.rb
mccloud-0.0.16 lib/mccloud/command/named_base.rb
mccloud-0.0.15 lib/mccloud/command/named_base.rb
mccloud-0.0.14 lib/mccloud/command/named_base.rb