Class: Balboa::CLI::Defaults

Inherits:
Object
  • Object
show all
Defined in:
lib/balboa/cli/defaults.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDefaults

Returns a new instance of Defaults.



13
14
15
16
# File 'lib/balboa/cli/defaults.rb', line 13

def initialize
  @config = {}
  @cli = HighLine.new
end

Class Method Details

.promptObject



9
10
11
# File 'lib/balboa/cli/defaults.rb', line 9

def self.prompt
  new.prompt
end

Instance Method Details

#promptObject



18
19
20
21
22
23
24
25
26
# File 'lib/balboa/cli/defaults.rb', line 18

def prompt
  prompt_attributes

  prompt_schedule

  create_file

  @config
end