thunderstorm 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/thunderstorm/cli.rb +16 -1
- data/lib/thunderstorm/cloud.rb +2 -2
- data/lib/thunderstorm/version.rb +1 -1
- data/thunderstorm.gemspec +2 -2
- metadata +5 -5
- data/bin/.DS_Store +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05948ca57fc6732128b4f2f718a7618d6ac47b95
|
4
|
+
data.tar.gz: ae86601a97994cc8c96e503dba5668809ce3331f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac95315fe0426b683d30147659c304df6e6b8d4dc636f89eb0736c5c1dbbe77d15ef873991a7bc0984a761db036cca53acefb0bb7dfd936b72aa77f7ac3897b1
|
7
|
+
data.tar.gz: 1a43f3a7013ef2915c0a2b20be67f5b7d09e6edd0fe8a4ab719bdfb03c125657588fdff226355ebcca4b724ca5602b0fda0dc2d5b00d20f6439792881f1022de
|
data/lib/thunderstorm/cli.rb
CHANGED
@@ -1,15 +1,30 @@
|
|
1
1
|
require 'thor'
|
2
2
|
require 'yaml'
|
3
|
+
require_relative 'cloud'
|
3
4
|
|
4
5
|
module Thunderstorm
|
5
6
|
class Lightning < Thor
|
6
7
|
include Thor::Actions
|
7
|
-
desc "
|
8
|
+
desc "bolt", "Install Thunderstorm"
|
8
9
|
option :install
|
9
10
|
option :name
|
10
11
|
def bolt()
|
11
12
|
install('thunderstorm.yml')
|
12
13
|
end
|
14
|
+
desc "rain", "Run Thunderstorm"
|
15
|
+
def rain(thunderstorm,dream)
|
16
|
+
if !File.exist?(thunderstorm)
|
17
|
+
puts 'Error: Unable to locate thunderstorm.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
|
+
thunder = Thunderstorm::Cloud.new(YAML::load_file(thunderstorm),YAML::load_file(dream))
|
24
|
+
thunder.rain()
|
25
|
+
puts thunder.shine()
|
26
|
+
end
|
27
|
+
end
|
13
28
|
private
|
14
29
|
def install(template_file)
|
15
30
|
install_path = options[:install] ? options[:install] : '.'
|
data/lib/thunderstorm/cloud.rb
CHANGED
@@ -12,8 +12,8 @@ module Thunderstorm
|
|
12
12
|
@spectre.record(@spectre.success, 'The skies have cleared')
|
13
13
|
@spectre.record_finished()
|
14
14
|
@spectre.record(@spectre.info, '[================]')
|
15
|
-
@spectre.record(@spectre.started, "#{@spectre.
|
16
|
-
@spectre.record(@spectre.finished, "#{@spectre.
|
15
|
+
@spectre.record(@spectre.started, "#{@spectre.started}")
|
16
|
+
@spectre.record(@spectre.finished, "#{@spectre.finished}")
|
17
17
|
end
|
18
18
|
def shine()
|
19
19
|
return @spectre.manuscript()
|
data/lib/thunderstorm/version.rb
CHANGED
data/thunderstorm.gemspec
CHANGED
@@ -23,8 +23,8 @@ Gem::Specification.new do |spec|
|
|
23
23
|
end
|
24
24
|
|
25
25
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
-
spec.bindir = "
|
27
|
-
spec.executables = spec.files.grep(%r{^
|
26
|
+
spec.bindir = "bin"
|
27
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
|
30
30
|
spec.add_dependency "thor", "~> 0.19"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thunderstorm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Austin Vecchio
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -69,7 +69,8 @@ dependencies:
|
|
69
69
|
description: A ruby api interface for Apache Jmeter
|
70
70
|
email:
|
71
71
|
- au.vecchio@gmail.com
|
72
|
-
executables:
|
72
|
+
executables:
|
73
|
+
- thunderstorm
|
73
74
|
extensions: []
|
74
75
|
extra_rdoc_files: []
|
75
76
|
files:
|
@@ -81,7 +82,6 @@ files:
|
|
81
82
|
- LICENSE.txt
|
82
83
|
- README.md
|
83
84
|
- Rakefile
|
84
|
-
- bin/.DS_Store
|
85
85
|
- bin/thunderstorm
|
86
86
|
- lib/.DS_Store
|
87
87
|
- lib/thunderstorm.rb
|
data/bin/.DS_Store
DELETED
Binary file
|