class FlipTheSwitch::Cli
Private Class Methods
defaults()
click to toggle source
# File lib/flip_the_switch/cli.rb, line 7 def self.defaults @defaults ||= Reader::Defaults.new.defaults end
Public Instance Methods
category()
click to toggle source
# File lib/flip_the_switch/cli.rb, line 25 def category category_generator.generate end
plist()
click to toggle source
# File lib/flip_the_switch/cli.rb, line 18 def plist plist_generator.generate end
settings()
click to toggle source
# File lib/flip_the_switch/cli.rb, line 32 def settings settings_generator.generate end
Private Instance Methods
category_generator()
click to toggle source
# File lib/flip_the_switch/cli.rb, line 42 def category_generator Generator::Category.new(output, features) end
feature_reader()
click to toggle source
# File lib/flip_the_switch/cli.rb, line 58 def feature_reader Reader::Features.new(input, options['environment']) end
features()
click to toggle source
# File lib/flip_the_switch/cli.rb, line 54 def features feature_reader.features end
input()
click to toggle source
# File lib/flip_the_switch/cli.rb, line 62 def input if File.directory?(options['input']) File.join(options['input'], 'features.json') else options['input'] end end
output()
click to toggle source
# File lib/flip_the_switch/cli.rb, line 50 def output options['output'] end
plist_generator()
click to toggle source
# File lib/flip_the_switch/cli.rb, line 38 def plist_generator Generator::Plist.new(output, features) end
settings_generator()
click to toggle source
# File lib/flip_the_switch/cli.rb, line 46 def settings_generator Generator::Settings.new(output, features) end