Class: Bim::Subcommands::Sync

Inherits:
Thor
  • Object
show all
Defined in:
lib/bim/subcommands/sync.rb

Overview

Sync class defines subcommands

Instance Method Summary collapse

Instance Method Details

#failover_stateObject



28
29
30
# File 'lib/bim/subcommands/sync.rb', line 28

def failover_state
  puts Bim::Action::Sync.failover_state
end

#stateObject



20
21
22
# File 'lib/bim/subcommands/sync.rb', line 20

def state
  puts Bim::Action::Sync.state
end

#to_group(group) ⇒ Object



12
13
14
# File 'lib/bim/subcommands/sync.rb', line 12

def to_group(group)
  puts Bim::Action::Sync.sync!(group, overwrite: options.key?(:overwrite))
end