Class: Orchestra::Cli::Services

Inherits:
Base
  • Object
show all
Defined in:
lib/orchestra/cli/services.rb

Instance Method Summary collapse

Methods inherited from Base

exit_on_failure?

Instance Method Details

#downObject



25
26
27
28
29
30
31
# File 'lib/orchestra/cli/services.rb', line 25

def down
  with_lock do
    log "services down"

    execute compose_down_cmd
  end
end

#lock_testObject



34
35
36
37
38
39
40
# File 'lib/orchestra/cli/services.rb', line 34

def lock_test
  with_lock do
    log "Executing something with lock for 15 seconds..."
    sleep 15
    log "Lock test done."
  end
end

#upObject



12
13
14
15
16
17
18
19
20
21
# File 'lib/orchestra/cli/services.rb', line 12

def up
  with_lock do
    log "services up"

    execute sync_config_files_cmd
    execute compose_prepare_cmd
    initialize_data_volumes
    execute compose_up_cmd
  end
end