Sha256: bb162b5445641e7a35d7ce19c0ff0f57e3761c438f4afecaea84966e3e287235

Contents?: true

Size: 730 Bytes

Versions: 10

Compression:

Stored size: 730 Bytes

Contents

module Caravan
  module DeployMethods
    class Shell < Caravan::Deploy::Base
      def after_create
        super do
          Caravan::Message.info("Notice: Shell Deployer is like copy, mainly designed for test.")
        end
      end

      def before_deploy
        super do
          Caravan::Message.info("Hook: before_deploy")
        end
      end

      def run
        super do |s, d|
          Caravan::Command.run("cp -r #{s} #{d}", @debug)
        end
      end

      def after_deploy
        super do
          Caravan::Message.info("Hook: after_deploy")
        end
      end

      def before_destroy
        super do
          Caravan::Message.info("Deployer destroyed")
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
caravan-1.0.0 lib/caravan/deploy_methods/shell.rb
caravan-1.0.0.beta2 lib/caravan/deploy_methods/shell.rb
caravan-1.0.0.beta1 lib/caravan/deploy_methods/shell.rb
caravan-0.7.0 lib/caravan/deploy_methods/shell.rb
caravan-0.6.2 lib/caravan/deploy_methods/shell.rb
caravan-0.6.1 lib/caravan/deploy_methods/shell.rb
caravan-0.6.0 lib/caravan/deploy_methods/shell.rb
caravan-0.5.2 lib/caravan/deploy_methods/shell.rb
caravan-0.5.1 lib/caravan/deploy_methods/shell.rb
caravan-0.5.0.alpha1 lib/caravan/deploy_methods/shell.rb