Class: Lab::CLI
- Inherits:
-
Thor
- Object
- Thor
- Lab::CLI
- Defined in:
- lib/lab/cli.rb
Instance Method Summary collapse
Instance Method Details
#configure ⇒ Object
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 |