instructions_list 1.0.5.1.beta → 1.0.6.beta

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: 51964e926f619ba0ef7bc120b548b0f9994111a1
4
- data.tar.gz: 7258698c3aa6e29900e793e7a01fef6bce454271
3
+ metadata.gz: a55844573f360de2b3cd37b8c0a5c31a97c67a66
4
+ data.tar.gz: 441bc682eb4b42bde28865fe47174864fa135b19
5
5
  SHA512:
6
- metadata.gz: bc61deae15883777177392e278f8e9ed0e388a086d5db46c0b214f6185326c727c8a0a696e0be202d6f8a0053ab13d03124cce4bfc427ed77e127e827226d27f
7
- data.tar.gz: 28a17b585bd4a98996b57755fe33394055e1e99580e224548d55f7ff830248756b1e92cc3e4401f9b4d90411bfe419e90dae257f3bbb560f2bd84e0145fbb8d9
6
+ metadata.gz: f38a513e2bc0cb04033680ceae91e811a9014c76663a38f354b3207a8e26eb58c0f77a35dd3445bde2f4c67c486498178cc009e6c170671ca42de3d753b23b46
7
+ data.tar.gz: dbda2a8fb9ed60853235115c40f1cc72c8eb3f5e0b7e7e8427516a68871b7e90bd8319505292edf7ad2f5d9845d2959db4b7d157a8a5f0c4112a5ea0baff2ddf
data/exe/il CHANGED
@@ -101,7 +101,8 @@ module InstructionsList
101
101
  instructable do
102
102
  load_from "Instructions", HOME_CACHE << "/" if home?
103
103
  load_from "Projects", PROJECT_CACHE << "/" if project?
104
- handle_instruction name,STACK,options[:force]
104
+ handle_instruction name,STACK,options[:force],p
105
+
105
106
  end
106
107
  rescue => e
107
108
  puts ""
@@ -195,7 +196,7 @@ module InstructionsList
195
196
  end
196
197
  end
197
198
 
198
- def handle_instruction name,stack,force
199
+ def handle_instruction name,stack,force,progressbar
199
200
  instruction = InstructionsList::INSTRUCTIONS.find { |i|
200
201
  command_name(i.name.gsub(" ","_")) == command_name(name)
201
202
  }
@@ -203,10 +204,11 @@ module InstructionsList
203
204
  instruction.depends_on.each do |dependancy|
204
205
  unless stack.include? command_name(dependancy.gsub(" ","_"))
205
206
  stack << command_name(dependancy.gsub(" ","_"))
206
- handle_instruction(command_name(dependancy.gsub(" ","_")),stack,force)
207
+ handle_instruction(command_name(dependancy.gsub(" ","_")),stack,force,progressbar)
207
208
  end
208
209
  end
209
210
  execute instruction,force: force
211
+
210
212
  end
211
213
 
212
214
  def execute instruction,force: false
@@ -31,5 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency "byebug"
32
32
  spec.add_dependency "thor"
33
33
  spec.add_dependency "pry"
34
+ spec.add_dependency "tty"
35
+
34
36
 
35
37
  end
@@ -1,3 +1,3 @@
1
1
  module InstructionsList
2
- VERSION = "1.0.5.1.beta"
2
+ VERSION = "1.0.6.beta"
3
3
  end
@@ -1,5 +1,6 @@
1
1
  require "open-uri"
2
2
  require "json"
3
+ require 'tty'
3
4
  require_relative "instructions_list/version"
4
5
 
5
6
 
@@ -15,6 +16,7 @@ module InstructionsList
15
16
  KEY_PATH="./#{INSTRUCTIONS_DIR}/key"
16
17
  STATE="./.instructions/state"
17
18
  HOST= ENV.fetch('INSTRUCTIONS_LIST_HOST',"instructionslist.com")
19
+
18
20
  class It
19
21
  def self.exists? path
20
22
  File.exists? path
@@ -92,7 +94,7 @@ module InstructionsList
92
94
  def check name
93
95
 
94
96
  unless CHECKED.include? command_name(name)
95
- system "echo #{command_name(name)} ✔︎"
97
+ `echo #{command_name(name)} ✔︎`
96
98
  return
97
99
  end
98
100
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instructions_list
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5.1.beta
4
+ version: 1.0.6.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coco Coder (aka Delaney Burke)
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-17 00:00:00.000000000 Z
11
+ date: 2017-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: tty
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  description: "\n Instruction List , an automated configuration management tool base
112
126
  around\n the principle of test driven automation\n "
113
127
  email:
@@ -119,7 +133,6 @@ extra_rdoc_files: []
119
133
  files:
120
134
  - ".byebug_history"
121
135
  - ".gitignore"
122
- - ".instructions/key"
123
136
  - ".ruby-version"
124
137
  - CODE_OF_CONDUCT.md
125
138
  - Gemfile
data/.instructions/key DELETED
@@ -1 +0,0 @@
1
- ILSIKXHMNCF