tango 0.1.8 → 0.1.9

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
- tango (0.1.4)
4
+ tango (0.1.9)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'erb'
2
4
  require 'fileutils'
3
5
 
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'tango/contexts/helpers'
2
4
 
3
5
  module Tango
@@ -5,7 +7,7 @@ module Tango
5
7
  class Chain
6
8
 
7
9
  include Helpers
8
-
10
+
9
11
  def initialize
10
12
  @contexts = []
11
13
  end
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  module Tango
2
4
  module Contexts
3
5
  class Directory
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  module Tango
2
4
  module Contexts
3
5
  module Helpers
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  module Tango
2
4
  module Contexts
3
5
  class Umask
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  module Tango
2
4
  module Contexts
3
5
  class User
@@ -1,6 +1,8 @@
1
+ # coding: utf-8
2
+
1
3
  module Tango
2
4
  module Delegate
3
-
5
+
4
6
  def self.included(base)
5
7
  base.extend(ClassMethods)
6
8
  end
data/lib/tango/fetch.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  module Tango
2
4
  module Fetch
3
5
 
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  module Tango
2
4
  module Helpers
3
5
  module FileManipulationHelpers
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  module Tango
2
4
  class CouldNotMeetError < RuntimeError; end
3
5
  class MeetWithoutMetError < RuntimeError; end
data/lib/tango/runner.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'tango/config_files'
2
4
  require 'tango/contexts/helpers'
3
5
  require 'tango/helpers/file_manipulation_helpers'
data/lib/tango/shell.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'ostruct'
2
4
 
3
5
  module Tango
@@ -34,12 +36,12 @@ module Tango
34
36
 
35
37
  def fork_and_exec(command, env_vars, *args)
36
38
  read_end, write_end = IO.pipe
37
- pid = fork do
39
+ pid = Kernel.fork do
38
40
  read_end.close
39
41
  STDOUT.reopen(write_end)
40
42
  STDERR.reopen(write_end)
41
43
  env_vars.each { |key, value| ENV[key] = value }
42
- exec(command, *args)
44
+ Kernel.exec(command, *args)
43
45
  end
44
46
  write_end.close
45
47
 
data/lib/tango/usage.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'tango/version'
2
4
 
3
5
  module Tango
data/lib/tango/version.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  module Tango
2
- VERSION = "0.1.8"
4
+ VERSION = "0.1.9"
3
5
  end
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'tango'
2
4
 
3
5
  module Tango
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'tango'
2
4
 
3
5
  module Tango::Contexts
@@ -13,7 +15,7 @@ module Tango::Contexts
13
15
  @in_context = false
14
16
  end
15
17
 
16
- def enter
18
+ def enter
17
19
  @in_context = true
18
20
  end
19
21
 
@@ -1,8 +1,10 @@
1
+ # coding: utf-8
2
+
1
3
  require 'tango'
2
4
 
3
5
  module Tango::Contexts
4
6
  describe Directory do
5
-
7
+
6
8
  before do
7
9
  stub_class = Class.new do
8
10
  include Helpers
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'tango'
2
4
 
3
5
  module Tango::Contexts
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'tango'
2
4
 
3
5
  module Tango::Helpers
data/spec/logger_spec.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'tango'
2
4
  require 'stringio'
3
5
 
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'tango'
2
4
 
3
5
  module Tango
data/spec/runner_spec.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'tango'
2
4
 
3
5
  class StubbedLogger
data/spec/shell_spec.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'tango'
2
4
 
3
5
  module Tango
metadata CHANGED
@@ -1,47 +1,34 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: tango
3
- version: !ruby/object:Gem::Version
4
- hash: 11
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.9
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 8
10
- version: 0.1.8
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Pete Yandell
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-12-25 00:00:00 +11:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-02-17 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: rspec
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70112418398640 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :development
34
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: *70112418398640
35
25
  description: Experiment in deployment tools, taking ideas from babushka and elsewhere.
36
- email:
26
+ email:
37
27
  - pete@notahat.com
38
28
  executables: []
39
-
40
29
  extensions: []
41
-
42
30
  extra_rdoc_files: []
43
-
44
- files:
31
+ files:
45
32
  - .gitignore
46
33
  - .rspec
47
34
  - Gemfile
@@ -79,41 +66,31 @@ files:
79
66
  - spec/shell_spec.rb
80
67
  - tango.gemspec
81
68
  - tmp/.gitignore
82
- has_rdoc: true
83
- homepage: ""
69
+ homepage: ''
84
70
  licenses: []
85
-
86
71
  post_install_message:
87
72
  rdoc_options: []
88
-
89
- require_paths:
73
+ require_paths:
90
74
  - lib
91
- required_ruby_version: !ruby/object:Gem::Requirement
75
+ required_ruby_version: !ruby/object:Gem::Requirement
92
76
  none: false
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- hash: 3
97
- segments:
98
- - 0
99
- version: "0"
100
- required_rubygems_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ! '>='
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
82
  none: false
102
- requirements:
103
- - - ">="
104
- - !ruby/object:Gem::Version
105
- hash: 3
106
- segments:
107
- - 0
108
- version: "0"
83
+ requirements:
84
+ - - ! '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
109
87
  requirements: []
110
-
111
88
  rubyforge_project: tango
112
- rubygems_version: 1.6.2
89
+ rubygems_version: 1.8.10
113
90
  signing_key:
114
91
  specification_version: 3
115
92
  summary: Experiment in deployment tools.
116
- test_files:
93
+ test_files:
117
94
  - spec/config_files_spec.rb
118
95
  - spec/contexts/chain_spec.rb
119
96
  - spec/contexts/directory_spec.rb