whisk 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,7 +49,12 @@ class Whisk
49
49
  end
50
50
 
51
51
  def path(arg=nil)
52
- set_or_return(:path, arg, :default => File.join(Dir.getwd, name))
52
+ if arg
53
+ path = File.expand_path(arg)
54
+ else
55
+ path = nil
56
+ end
57
+ set_or_return(:path, path, :default => File.expand_path(File.join(Dir.getwd, name)))
53
58
  end
54
59
 
55
60
  def refs_from_environment(arg=nil)
@@ -0,0 +1,10 @@
1
+ class Whisk
2
+ class RunContext
3
+ def initialize
4
+ @bowls = {}
5
+ @bowls['__default'] = Whisk::Bowl.new '__default' do
6
+ path "cookbooks"
7
+ end
8
+ end
9
+ end
10
+ end
@@ -17,5 +17,5 @@
17
17
  #
18
18
 
19
19
  class Whisk
20
- VERSION = '0.3.0'
20
+ VERSION = '0.3.1'
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whisk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-02 00:00:00.000000000 Z
12
+ date: 2013-03-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef
@@ -137,6 +137,7 @@ files:
137
137
  - lib/whisk/cli.rb
138
138
  - lib/whisk/resource/ingredient.rb
139
139
  - lib/whisk/resource/bowl.rb
140
+ - lib/whisk/run_context.rb
140
141
  - lib/whisk/whiskfile.rb
141
142
  - lib/whisk/resource.rb
142
143
  - lib/whisk/exceptions.rb