Class: Capistrano::DBSync::Executor::Base
- Inherits:
-
Object
- Object
- Capistrano::DBSync::Executor::Base
- Defined in:
- lib/capistrano/db_sync/executor/base.rb
Instance Method Summary collapse
- #cleanup? ⇒ Boolean
- #env ⇒ Object
-
#initialize(cap, config, side) ⇒ Base
constructor
sidemust be :local or :remote. - #working_dir ⇒ Object
Constructor Details
#initialize(cap, config, side) ⇒ Base
side must be :local or :remote
6 7 8 9 10 11 |
# File 'lib/capistrano/db_sync/executor/base.rb', line 6 def initialize(cap, config, side) @cap = cap @config = config @session_id = Time.now.strftime("%Y-%m-%d-%H%M%S") @side = side end |
Instance Method Details
#cleanup? ⇒ Boolean
21 22 23 |
# File 'lib/capistrano/db_sync/executor/base.rb', line 21 def cleanup? config[side][:cleanup] end |
#env ⇒ Object
17 18 19 |
# File 'lib/capistrano/db_sync/executor/base.rb', line 17 def env config[side][:env].to_s end |
#working_dir ⇒ Object
13 14 15 |
# File 'lib/capistrano/db_sync/executor/base.rb', line 13 def working_dir File.join config[side][:working_dir] end |