Class: ConsoleRtm::RmilkRunner
- Inherits:
-
Object
- Object
- ConsoleRtm::RmilkRunner
- Defined in:
- lib/rmilk/rmilk_runner.rb
Instance Method Summary collapse
Instance Method Details
#init_environment ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/rmilk/rmilk_runner.rb', line 5 def init_environment ENV["RTM_API_KEY"] = "4486f9224a4a8fa8fef850482fc26160" ENV["RTM_SHARED_SECRET"] = "03b3b6dba031d1b2" ENV["RTM_FROB"] = "1de9da4bdf1dfad6882864c1a0694dd7807aed1e" ENV["RTM_AUTH_TOKEN"] = "079c19ec8b7e364860288624da7a9cf416d310d1" ENV["DEFAULT_LIST"] = "Next" ENV["NEXT_ACTIONS"] = "Next" end |
#init_storage ⇒ Object
15 16 17 |
# File 'lib/rmilk/rmilk_runner.rb', line 15 def init_storage @storage = ContextStorage.new('/tmp/rtm_local.store') end |
#init_ui ⇒ Object
19 20 21 |
# File 'lib/rmilk/rmilk_runner.rb', line 19 def init_ui @ui = ConsoleUi.new(@storage, OutputFormatter.new) end |
#process(str) ⇒ Object
23 24 25 |
# File 'lib/rmilk/rmilk_runner.rb', line 23 def process(str) puts @ui.process(str) end |