flash 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/flash/runfile.rb +2 -1
- data/lib/flash/runner.rb +8 -3
- data/lib/flash/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/lib/flash/runfile.rb
CHANGED
data/lib/flash/runner.rb
CHANGED
@@ -3,13 +3,14 @@ require 'flash/runfile'
|
|
3
3
|
|
4
4
|
class Flash::Runner
|
5
5
|
attr_reader :options
|
6
|
-
attr_accessor :debug, :color, :dir_name, :group
|
6
|
+
attr_accessor :debug, :color, :dir_name, :runfile, :group
|
7
7
|
|
8
8
|
def initialize(options = {}, group)
|
9
9
|
raise "Missing required group parameter." unless group
|
10
10
|
|
11
11
|
@options = options
|
12
|
-
@
|
12
|
+
@runfile = Flash::Runfile.new('Runfile')
|
13
|
+
@group = group
|
13
14
|
end
|
14
15
|
|
15
16
|
def pwd
|
@@ -57,11 +58,15 @@ class Flash::Runner
|
|
57
58
|
"#{ dir_name }> "
|
58
59
|
end
|
59
60
|
|
61
|
+
def group_dirs
|
62
|
+
runfile[group]
|
63
|
+
end
|
64
|
+
|
60
65
|
def start
|
61
66
|
list_recipes and exit if options[:list_recipes]
|
62
67
|
|
63
68
|
self.debug = options[:debug]
|
64
|
-
|
69
|
+
group_dirs.each do |dir_name|
|
65
70
|
change_color!
|
66
71
|
self.dir_name = dir_name
|
67
72
|
run "cd #{ pwd }/#{ dir_name }", false
|
data/lib/flash/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -51,7 +51,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
51
51
|
version: '0'
|
52
52
|
segments:
|
53
53
|
- 0
|
54
|
-
hash:
|
54
|
+
hash: -4469809819880840159
|
55
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
56
|
none: false
|
57
57
|
requirements:
|
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
version: '0'
|
61
61
|
segments:
|
62
62
|
- 0
|
63
|
-
hash:
|
63
|
+
hash: -4469809819880840159
|
64
64
|
requirements: []
|
65
65
|
rubyforge_project: flash
|
66
66
|
rubygems_version: 1.8.25
|