Class: Deployer::ConsoleDeployer

Inherits:
BaseDeployer show all
Defined in:
lib/deployer/console_deployer.rb

Instance Attribute Summary

Attributes inherited from BaseDeployer

#options, #stage_path

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ ConsoleDeployer

Returns a new instance of ConsoleDeployer.



3
4
5
# File 'lib/deployer/console_deployer.rb', line 3

def initialize(options)
  @options = options
end

Instance Method Details

#deploy!Object



7
8
9
10
11
12
13
# File 'lib/deployer/console_deployer.rb', line 7

def deploy!
  Bundler.with_clean_env do
    Dir.chdir(console_dir) do
      system "bundle install && cap #{stage} deploy"
    end
  end
end