Class: Hotify::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/hotify/cli.rb

Instance Method Summary collapse

Instance Method Details

#apply(path) ⇒ Object



23
24
25
26
27
# File 'lib/hotify/cli.rb', line 23

def apply(path)
  role_file = YAML.load_file(path)
  add_role_by_yaml(role_file)
  remove_role_by_yaml(role_file)
end

#dump(path) ⇒ Object



6
7
8
# File 'lib/hotify/cli.rb', line 6

def dump
  Hotify::Role.new.dump_role
end