slipspace 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bea95ae0c1e43937b6203fffa21fa90818bb08c2
4
- data.tar.gz: 66380747b8820041454a9fcdffcbb6c9d2855235
3
+ metadata.gz: 2e0f62f026a2d227591cf3ec6a720b2847d1c96f
4
+ data.tar.gz: 21f12fc0dc2edcc4c4a9c94ef5bcc8af39094d10
5
5
  SHA512:
6
- metadata.gz: 8adff25986cb7c61cedbf6504051e3c3bd37d09730a692c83e508065bdfac676aa561d80ab0236530ab790ec4817764ce1879d695f59fd8dc2b1df560a93e0af
7
- data.tar.gz: fed08a939b93d3569d535d27f29ddad2d6cfd792aa183701ef85cf33382b86ba8eea326af0d4745ef67f8c2a05342e24d17c9deb6e50cafc8fc1c155735c49b5
6
+ metadata.gz: 824b489f95409424aaf7d8ab5307415fd9b4df447f88b7588a4659cc568bc01139eb56fe88498ef79d37fad718fda52e7926f518e853b59f145458e1422c7832
7
+ data.tar.gz: 45000b659eaddf7b0fad78ba5160e9f6534c92eec9eab3c606b52b3abe0cb966a595ea4a01c7f67d2984e6fb098418f73d26891b04f9b8c29f114d6520fc9ad0
data/lib/slipspace/cli.rb CHANGED
@@ -1,15 +1,30 @@
1
1
  require 'thor'
2
2
  require 'yaml'
3
+ require_relative 'stream'
3
4
 
4
5
  module Slipspace
5
6
  class Navigation < Thor
6
7
  include Thor::Actions
7
- desc "slipspace prepare", "Install slipspace"
8
+ desc "prepare", "Install slipspace"
8
9
  option :install
9
10
  option :name
10
11
  def prepare()
11
12
  install('slipspace.yml')
12
13
  end
14
+ desc "drop", "Enter slipspace"
15
+ def drop(slipspace,dream)
16
+ if !File.exist?(slipspace)
17
+ puts 'Error: Unable to locate slipspace.yml'
18
+ puts 'Shutting down...'
19
+ elsif !File.exists?(dream)
20
+ puts 'Error: Unable to locate dream.yml'
21
+ puts 'Shutting down...'
22
+ else
23
+ portal = Slipspace::Stream.new(YAML::load_file(slipspace), YAML::load_file(dream))
24
+ portal.throttle()
25
+ puts portal.drop()
26
+ end
27
+ end
13
28
  private
14
29
  def install(template_file)
15
30
  install_path = options[:install] ? options[:install] : '.'
@@ -1,3 +1,3 @@
1
1
  module Slipspace
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slipspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Vecchio