Sha256: 8e3c94bbee0265600dec84f65ababbba22c3f2fc78f7358db1c4c49c13461533

Contents?: true

Size: 889 Bytes

Versions: 12

Compression:

Stored size: 889 Bytes

Contents

require 'simple_deploy/stack/ssh'

module SimpleDeploy
  class Stack
    class Execute
      def initialize(args)
        @config      = args[:config]
        @instances   = args[:instances]
        @environment = args[:environment]
        @ssh_user    = args[:ssh_user]
        @ssh_key     = args[:ssh_key]
        @stack       = args[:stack]
        @name        = args[:name]
      end

      def execute(args)
        ssh.execute args
      end

      private

      def ssh
        options = { :config      => @config,
                    :instances   => @instances,
                    :environment => @environment,
                    :ssh_user    => @ssh_user,
                    :ssh_key     => @ssh_key,
                    :stack       => @stack,
                    :name        => @name }
        @ssh ||= SimpleDeploy::Stack::SSH.new options
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
simple_deploy-0.7.2 lib/simple_deploy/stack/execute.rb
simple_deploy-0.7.2.beta.1 lib/simple_deploy/stack/execute.rb
simple_deploy-0.7.1 lib/simple_deploy/stack/execute.rb
simple_deploy-0.7.0 lib/simple_deploy/stack/execute.rb
simple_deploy-0.6.7 lib/simple_deploy/stack/execute.rb
simple_deploy-0.6.6 lib/simple_deploy/stack/execute.rb
simple_deploy-0.6.5 lib/simple_deploy/stack/execute.rb
simple_deploy-0.6.4 lib/simple_deploy/stack/execute.rb
simple_deploy-0.6.3 lib/simple_deploy/stack/execute.rb
simple_deploy-0.6.2 lib/simple_deploy/stack/execute.rb
simple_deploy-0.6.1 lib/simple_deploy/stack/execute.rb
simple_deploy-0.6.0 lib/simple_deploy/stack/execute.rb