mason 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -60,7 +60,7 @@ You will need [VirtualBox](https://www.virtualbox.org/wiki/Downloads) for Vagran
60
60
  $ mason stacks:up VAGRANT_BOX_NAME
61
61
  * booting stack cedar (this may take a while)... done
62
62
 
63
- $ mason:build /tmp/app -t tgz -o /tmp/compiled.tgz
63
+ $ mason:build /tmp/app -t tgz -o /tmp/compiled.tgz -s cedar
64
64
  * booting stack cedar (this may take a while)... done
65
65
  * detecting buildpack... done
66
66
  = name: Baz
@@ -39,6 +39,7 @@ class Mason::Buildpack
39
39
  print data
40
40
  end
41
41
  end
42
+ raise "compile failed" unless $?.exitstatus.zero?
42
43
  end
43
44
  compile_dir
44
45
  end
data/lib/mason/cli.rb CHANGED
@@ -26,6 +26,8 @@ class Mason::CLI < Thor
26
26
  method_option :type, :type => :string, :aliases => "-t", :desc => "output type (dir, img, tgz)"
27
27
 
28
28
  def build(app)
29
+ app = File.expand_path(app)
30
+
29
31
  raise "no such directory: #{app}" unless File.exists?(app)
30
32
 
31
33
  type = options[:type]
@@ -37,6 +39,8 @@ class Mason::CLI < Thor
37
39
  type ||= "dir"
38
40
  output ||= "/tmp/mason.out"
39
41
 
42
+ output = File.expand_path(output)
43
+
40
44
  raise "no such output format: #{type}" unless %w( dir img tgz ).include?(type)
41
45
 
42
46
  if stack = options[:stack]
@@ -123,7 +127,7 @@ class Mason::CLI < Thor
123
127
  puts " = #{buildpack.name}: #{buildpack.url}"
124
128
  end
125
129
 
126
- puts " - no buildpacks installed, use buildpacks:add" if buildpacks.length.zero?
130
+ puts " - no buildpacks installed, use buildpacks:install" if buildpacks.length.zero?
127
131
  end
128
132
 
129
133
  class Buildpacks < Thor
@@ -191,7 +195,7 @@ class Mason::CLI < Thor
191
195
  puts "done"
192
196
  end
193
197
 
194
- desc "stacks:down STACK", "boot a stack"
198
+ desc "stacks:down STACK", "suspend a stack"
195
199
 
196
200
  def down(name)
197
201
  print "* stopping stack #{name}..."
data/lib/mason/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mason
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mason
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &70318325374380 !ruby/object:Gem::Requirement
16
+ requirement: &70365406600900 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70318325374380
24
+ version_requirements: *70365406600900
25
25
  description: Build things
26
26
  email: ddollar@gmail.com
27
27
  executables: