ploy 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ploy/command.rb +2 -0
- data/lib/ploy/command/build.rb +43 -0
- data/lib/ploy/localpackage/debbuilder.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f85771e973ed6bb9ab1a1c00cfe3eaa09e29a96
|
4
|
+
data.tar.gz: 3224b8a74b21116d8918722bd7daf7786848afb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b470aed37e47d06666d3b8a9c1d231b3a5bbae2f27be2f6fe1ee04615700db82286e961438f062012353c10a250d76cb94a74cd80c8436596cf6ba22e18b7324
|
7
|
+
data.tar.gz: 3aab04b0801fa14dad40acb2bf66c98f4f9dfd69402a0f8ffc37ce02e440689475a04200f4b7dca7ba8df2c4600bea30e393e36029340d55a458bed74a80a1d9
|
data/lib/ploy/command.rb
CHANGED
@@ -4,6 +4,7 @@ require 'ploy/command/help'
|
|
4
4
|
require 'ploy/command/bless'
|
5
5
|
require 'ploy/command/oracle'
|
6
6
|
require 'ploy/command/client'
|
7
|
+
require 'ploy/command/build'
|
7
8
|
|
8
9
|
module Ploy
|
9
10
|
module Command
|
@@ -15,6 +16,7 @@ module Ploy
|
|
15
16
|
'publish' => Ploy::Command::Publish,
|
16
17
|
'oracle' => Ploy::Command::Oracle,
|
17
18
|
'client' => Ploy::Command::Client,
|
19
|
+
'build' => Ploy::Command::Build,
|
18
20
|
}
|
19
21
|
mod = lookup[topic] || lookup['help']
|
20
22
|
return mod.new
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require 'ploy/command/base'
|
2
|
+
require 'ploy/localpackage/config'
|
3
|
+
|
4
|
+
module Ploy
|
5
|
+
module Command
|
6
|
+
class Build < Base
|
7
|
+
def run(argv)
|
8
|
+
config_source = argv.shift || '.ploy-publisher.yml'
|
9
|
+
config = Ploy::LocalPackage::Config.new config_source
|
10
|
+
path = config.builder.build_deb
|
11
|
+
puts "ploy build deb: #{path}"
|
12
|
+
return true
|
13
|
+
end
|
14
|
+
|
15
|
+
def help
|
16
|
+
return <<helptext
|
17
|
+
usage: ploy build [config.yml]
|
18
|
+
|
19
|
+
Examples:
|
20
|
+
|
21
|
+
$ ploy build
|
22
|
+
$ ploy build something.yml
|
23
|
+
|
24
|
+
Config Example:
|
25
|
+
|
26
|
+
---
|
27
|
+
bucket: bucketname
|
28
|
+
deploy_name: some-project
|
29
|
+
dist_dir: spec/resources/dist
|
30
|
+
prep_cmd: lineman build
|
31
|
+
prefix: /usr/local/someproject
|
32
|
+
upstart_files:
|
33
|
+
- spec/resources/conf/some-project-initfile
|
34
|
+
|
35
|
+
Summary:
|
36
|
+
|
37
|
+
Build a deb file.
|
38
|
+
|
39
|
+
helptext
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Bruce
|
@@ -62,6 +62,7 @@ files:
|
|
62
62
|
- lib/ploy/cli.rb
|
63
63
|
- lib/ploy/command/base.rb
|
64
64
|
- lib/ploy/command/bless.rb
|
65
|
+
- lib/ploy/command/build.rb
|
65
66
|
- lib/ploy/command/client.rb
|
66
67
|
- lib/ploy/command/help.rb
|
67
68
|
- lib/ploy/command/install.rb
|