Class: Lab::CLI

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

Instance Method Summary collapse

Instance Method Details

#configureObject



9
10
11
12
13
14
15
16
17
18
# File 'lib/lab/cli.rb', line 9

def configure
  domain        = ask "Domain:"
  private_token = ask "Private token:"

  yaml = YAML.dump "domain" => domain, "private_token" => private_token

  file = File.open DOTFILE, "w" do |file|
    file.write yaml
  end
end