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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 331e2a837c04040d1b0ba60d811c83d6225225d4
4
- data.tar.gz: 31c0ca84ea656cb18215b962883398f7fc8857d1
3
+ metadata.gz: 7f85771e973ed6bb9ab1a1c00cfe3eaa09e29a96
4
+ data.tar.gz: 3224b8a74b21116d8918722bd7daf7786848afb2
5
5
  SHA512:
6
- metadata.gz: 66108f1e006c8e4a4e3c7d11ba7ad4d576bd36f698c7a6274fa966b787261dfda2ee8209cd429e937226b3556202f24ae413b1a16ecd48bdabc14282abc82d80
7
- data.tar.gz: c5cc73175936835a4ea5be5e131940da8b5ab9779cba1e748b10d9d5b0df005ca6f7da3b31d6c12581f2289523627592ca029b89c504a5551609cc64567eaa6d
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
@@ -61,7 +61,7 @@ module Ploy
61
61
 
62
62
  def mirror_dist(dir)
63
63
  FileUtils.mkpath mirror_dist_target(dir)
64
- system("rsync -aC #{@dist_dir}/* #{mirror_dist_target(dir)}")
64
+ system("rsync -a #{@dist_dir}/* #{mirror_dist_target(dir)}")
65
65
  end
66
66
 
67
67
  def mirror_dist_target(topdir)
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.9
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