Sha256: 6c5859e771d49c366b63c5048112626ecfe3f0ef2919b8d5efd1c853d414f6c4

Contents?: true

Size: 434 Bytes

Versions: 16

Compression:

Stored size: 434 Bytes

Contents

module Mccloud
  module Command
    class ReloadCommand < Base

      argument :box_name, :type => :string, :optional => true, :default => nil

      register "reload [NAME]", "Reboots the machine"

      def execute
        env.config.providers.each do |name,provider|
          env.logger.debug("Asking provider #{name} to reload box #{box_name}")
          provider.reload(box_name,options)
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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