Sha256: b746cee024e734321f51ada0960ed1890b1723bd0af7c46012171368c9bf7598

Contents?: true

Size: 644 Bytes

Versions: 16

Compression:

Stored size: 644 Bytes

Contents

module Mccloud::Provider
  module Aws
    module VmCommand

      def _provision(options=nil)
        unless raw.nil?

          if raw.ready?
            self.share

            @provisioners.each do |provisioner|
              env.ui.info "[#{@name}] - starting provisioning with #{provisioner.name} as provisioner"
              provisioner.run(self)
            end
          else
            raise Mccloud::Error, "[#{@name}] - machine is not running, skipping provisioning"
          end
        else
          raise Mccloud::Error, "[#{@name}] - machine doesn't exit yet"
        end
      end

    end #module
  end #module
end #module

Version data entries

16 entries across 16 versions & 1 rubygems

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