mason 0.0.4 → 0.0.5
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.
- data/README.md +1 -1
- data/lib/mason/buildpack.rb +1 -0
- data/lib/mason/cli.rb +6 -2
- data/lib/mason/version.rb +1 -1
- metadata +3 -3
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
|
data/lib/mason/buildpack.rb
CHANGED
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:
|
|
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", "
|
|
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
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
|
+
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: &
|
|
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: *
|
|
24
|
+
version_requirements: *70365406600900
|
|
25
25
|
description: Build things
|
|
26
26
|
email: ddollar@gmail.com
|
|
27
27
|
executables:
|