flash 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- flash (0.0.2)
4
+ flash (0.0.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -3,9 +3,10 @@ require 'yaml'
3
3
 
4
4
  class Flash::Runfile
5
5
 
6
+ attr_reader :groups
7
+
6
8
  def initialize(filename=nil)
7
9
  load(filename) if filename
8
- @groups = []
9
10
  end
10
11
 
11
12
  def [](name=nil)
@@ -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
- @group = Flash::Runfile.new('Runfile')[group]
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
- group.each do |dir_name|
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
@@ -1,3 +1,3 @@
1
1
  module Flash
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
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.2
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: 1202582725409049747
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: 1202582725409049747
63
+ hash: -4469809819880840159
64
64
  requirements: []
65
65
  rubyforge_project: flash
66
66
  rubygems_version: 1.8.25