Class: Slipspace::Navigation
- Inherits:
-
Thor
- Object
- Thor
- Slipspace::Navigation
- Includes:
- Thor::Actions
- Defined in:
- lib/slipspace/cli.rb
Instance Method Summary collapse
Instance Method Details
#drop(slipspace, dream) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/slipspace/cli.rb', line 16 def drop(slipspace,dream) if !File.exist?(slipspace) puts 'Error: Unable to locate slipspace.yml' puts 'Shutting down...' elsif !File.exists?(dream) puts 'Error: Unable to locate dream.yml' puts 'Shutting down...' else portal = Slipspace::Stream.new(YAML::load_file(slipspace), YAML::load_file(dream)) portal.throttle() puts portal.drop() end end |
#prepare ⇒ Object
11 12 13 14 |
# File 'lib/slipspace/cli.rb', line 11 def prepare() install('slipspace.yml') system('dream sleep') end |