pkg-wizard 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,19 +1,9 @@
1
1
  = pkg-wizard
2
2
 
3
- Description goes here.
4
-
5
- == Contributing to pkg-wizard
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
9
- * Fork the project
10
- * Start a feature/bugfix branch
11
- * Commit and push until you are happy with your contribution
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
3
+ Doc is comming...
14
4
 
15
5
  == Copyright
16
6
 
17
- Copyright (c) 2011 Sergio Rubio. See LICENSE.txt for
7
+ Copyright (c) 2011 Sergio Rubio <rubiojr@frameos.org>. See LICENSE.txt for
18
8
  further details.
19
9
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -17,6 +17,10 @@ module PKGWizard
17
17
 
18
18
  def run(argv)
19
19
  @@argv = argv
20
+ if @@argv.include?('--version') or @@argv.include?('-v')
21
+ puts "PKG Wizard Version #{PKGWizard::VERSION}"
22
+ exit 0
23
+ end
20
24
  cmd = argv.shift
21
25
  found = false
22
26
  @@registry.each do |c|
@@ -66,6 +66,7 @@ module PKGWizard
66
66
  Dir.mkdir 'incoming' if not File.exist?('incoming')
67
67
  Dir.mkdir 'output' if not File.exist?('output')
68
68
  Dir.mkdir 'workspace' if not File.exist?('workspace')
69
+ Dir.mkdir 'archive' if not File.exist?('archive')
69
70
  scheduler = Rufus::Scheduler.start_new
70
71
  scheduler.every '2s', :blocking => true do
71
72
  meta[:start_time] = Time.now
@@ -93,7 +94,8 @@ module PKGWizard
93
94
  f.puts "#{e.message}"
94
95
  end
95
96
  ensure
96
- meta[:endtime] = Time.now
97
+ meta[:end_time] = Time.now
98
+ meta[:build_time] = meta[:end_time] - meta[:start_time]
97
99
  File.open(job_dir + '/meta.yml', 'w') do |f|
98
100
  f.puts meta.to_yaml
99
101
  end
data/lib/pkg-wizard.rb CHANGED
@@ -3,6 +3,8 @@ require 'fileutils'
3
3
  require 'mixlib/cli'
4
4
 
5
5
  module PKGWizard
6
+
7
+ VERSION = '0.1.3'
6
8
 
7
9
  class Distribution
8
10
  def self.detect
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pkg-wizard
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sergio Rubio