depengine 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- depengine (1.0.0)
4
+ depengine (0.0.2)
5
5
  json (~> 1.4)
6
6
  log4r
7
7
  net-scp
@@ -16,18 +16,18 @@ GEM
16
16
  specs:
17
17
  diff-lcs (1.1.3)
18
18
  i18n (0.6.1)
19
- json (1.7.6)
19
+ json (1.7.7)
20
20
  log4r (1.1.10)
21
21
  mail (2.5.3)
22
22
  i18n (>= 0.4.0)
23
23
  mime-types (~> 1.16)
24
24
  treetop (~> 1.4.8)
25
- mime-types (1.19)
26
- net-scp (1.0.4)
27
- net-ssh (>= 1.99.1)
28
- net-sftp (2.0.5)
29
- net-ssh (>= 2.0.9)
30
- net-ssh (2.6.3)
25
+ mime-types (1.21)
26
+ net-scp (1.1.0)
27
+ net-ssh (>= 2.6.5)
28
+ net-sftp (2.1.1)
29
+ net-ssh (>= 2.6.5)
30
+ net-ssh (2.6.5)
31
31
  polyglot (0.3.3)
32
32
  pony (1.4)
33
33
  mail (> 2.0)
@@ -40,7 +40,7 @@ GEM
40
40
  rspec-core (2.12.2)
41
41
  rspec-expectations (2.12.1)
42
42
  diff-lcs (~> 1.1.3)
43
- rspec-mocks (2.12.1)
43
+ rspec-mocks (2.12.2)
44
44
  treetop (1.4.12)
45
45
  polyglot
46
46
  polyglot (>= 0.3.1)
data/bin/depengine CHANGED
@@ -1,16 +1,5 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'depengine' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
1
+ #!ruby -w
8
2
 
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
3
+ require 'depengine/main'
12
4
 
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('depengine', 'depengine')
5
+ exit Deployment.deploy(ARGV)
data/depengine.gemspec CHANGED
@@ -29,6 +29,6 @@ Gem::Specification.new do |s|
29
29
  s.files = `git ls-files`.split("\n")
30
30
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
31
31
 
32
- s.executables = %w(depengine depengine.sh cdb_crypt)
32
+ s.executables = %w(depengine.sh cdb_crypt)
33
33
  s.require_paths = ["lib"]
34
34
  end
@@ -16,7 +16,7 @@ require 'ptools'
16
16
  require 'csv'
17
17
  require 'zlib'
18
18
 
19
- Dir[File.join( File.dirname(__FILE__), '**/*.rb' )].each \
19
+ Dir[File.join( File.dirname(__FILE__), '**/*.rb' )].each \
20
20
  { |file| require file }
21
21
 
22
22
  #Dir[File.join( '/export/home/ctraut/.rvm/gems/ruby-1.9.3-p194/gems/depengine-1.0.0/bin', '../lib/**/*.rb' )].each \
@@ -32,12 +32,41 @@ $log = Log::DeploymentLogger.new
32
32
  include Deployment::Methods
33
33
 
34
34
  module Deployment
35
- module Main
35
+ class << self
36
36
  def deploy(deploy_home )
37
37
  recipe_name = File.join(deploy_home, "recipe/deploy.rb")
38
38
  puts "Using recipe #{recipe_name}"
39
39
  eval(File.new(recipe_name).read)
40
40
  end
41
+
42
+ def run(args, input = $stdin, output = $stdout, error = $stderr) #:nodoc:
43
+ @binary = nil
44
+
45
+ args.options do |o|
46
+ o.banner = "Usage: #{File.basename($0)} [options] oldfile newfile"
47
+ o.separator ""
48
+ o.on('-c', 'Displays a context diff with 3 lines of', 'context.') do |ctx|
49
+ @format = :context
50
+ @lines = 3
51
+ end
52
+ o.on('-C', '--context [LINES]', Numeric, 'Displays a context diff with LINES lines', 'of context. Default 3 lines.') do |ctx|
53
+ @format = :context
54
+ @lines = ctx || 3
55
+ end
56
+ o.on_tail('--version', 'Shows the version of Diff::LCS.') do
57
+ error << BANNER
58
+ return 0
59
+ end
60
+ o.on_tail ""
61
+ o.on_tail 'By default, runs produces an "old-style" diff, with output like UNIX diff.'
62
+ o.parse!
63
+ end
64
+
65
+ unless args.size == 2
66
+ error << args.options
67
+ return 127
68
+ end
69
+ end
41
70
  end
42
71
  end
43
72
 
@@ -1,3 +1,3 @@
1
1
  module Depengine
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: depengine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-31 00:00:00.000000000 Z
12
+ date: 2013-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -159,7 +159,6 @@ description: Simply generates Depengine text.
159
159
  email:
160
160
  - team-automatisierung@sinnerschrader.com
161
161
  executables:
162
- - depengine
163
162
  - depengine.sh
164
163
  - cdb_crypt
165
164
  extensions: []