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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3e2543a9b960f83178da751e71052a53fd20750
4
- data.tar.gz: da31b58eea090eeb534c2f22e8981538e5cc3d6d
3
+ metadata.gz: 05948ca57fc6732128b4f2f718a7618d6ac47b95
4
+ data.tar.gz: ae86601a97994cc8c96e503dba5668809ce3331f
5
5
  SHA512:
6
- metadata.gz: ef706f97339ab6b8ce8135fe43b33cc1732f45a890a347563438d2a0254af48f1ee799521d9fb4b56af8390588d23603e2807545bb95a320a4cfebe29ad3c8bb
7
- data.tar.gz: 56d3c298ad07d67bf15c8636e5de2b162be3d4197c4da8cea6107b8933480927fc65f051522c6f424c9ddaf600c07eb620a1ecf653476f5169283153217c1b86
6
+ metadata.gz: ac95315fe0426b683d30147659c304df6e6b8d4dc636f89eb0736c5c1dbbe77d15ef873991a7bc0984a761db036cca53acefb0bb7dfd936b72aa77f7ac3897b1
7
+ data.tar.gz: 1a43f3a7013ef2915c0a2b20be67f5b7d09e6edd0fe8a4ab719bdfb03c125657588fdff226355ebcca4b724ca5602b0fda0dc2d5b00d20f6439792881f1022de
@@ -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 "thunderstorm bolt", "Install Thunderstorm"
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] : '.'
@@ -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.began}")
16
- @spectre.record(@spectre.finished, "#{@spectre.ended}")
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()
@@ -1,3 +1,3 @@
1
1
  module Thunderstorm
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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 = "exe"
27
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Vecchio
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-09 00:00:00.000000000 Z
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