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 +1 -1
- data/lib/tango/config_files.rb +2 -0
- data/lib/tango/contexts/chain.rb +3 -1
- data/lib/tango/contexts/directory.rb +2 -0
- data/lib/tango/contexts/helpers.rb +2 -0
- data/lib/tango/contexts/umask.rb +2 -0
- data/lib/tango/contexts/user.rb +2 -0
- data/lib/tango/delegate.rb +3 -1
- data/lib/tango/fetch.rb +2 -0
- data/lib/tango/helpers/file_manipulation_helpers.rb +2 -0
- data/lib/tango/met_and_meet.rb +2 -0
- data/lib/tango/runner.rb +2 -0
- data/lib/tango/shell.rb +4 -2
- data/lib/tango/usage.rb +2 -0
- data/lib/tango/version.rb +3 -1
- data/spec/config_files_spec.rb +2 -0
- data/spec/contexts/chain_spec.rb +3 -1
- data/spec/contexts/directory_spec.rb +3 -1
- data/spec/contexts/umask_spec.rb +2 -0
- data/spec/helpers/file_manipulation_helpers_spec.rb +2 -0
- data/spec/logger_spec.rb +2 -0
- data/spec/met_and_meet_spec.rb +2 -0
- data/spec/runner_spec.rb +2 -0
- data/spec/shell_spec.rb +2 -0
- metadata +30 -53
data/Gemfile.lock
CHANGED
data/lib/tango/config_files.rb
CHANGED
data/lib/tango/contexts/chain.rb
CHANGED
data/lib/tango/contexts/umask.rb
CHANGED
data/lib/tango/contexts/user.rb
CHANGED
data/lib/tango/delegate.rb
CHANGED
data/lib/tango/fetch.rb
CHANGED
data/lib/tango/met_and_meet.rb
CHANGED
data/lib/tango/runner.rb
CHANGED
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
data/lib/tango/version.rb
CHANGED
data/spec/config_files_spec.rb
CHANGED
data/spec/contexts/chain_spec.rb
CHANGED
data/spec/contexts/umask_spec.rb
CHANGED
data/spec/logger_spec.rb
CHANGED
data/spec/met_and_meet_spec.rb
CHANGED
data/spec/runner_spec.rb
CHANGED
data/spec/shell_spec.rb
CHANGED
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
|
-
|
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
|
-
|
19
|
-
|
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
|
-
|
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
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
33
22
|
type: :development
|
34
|
-
|
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
|
-
|
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
|
-
|
97
|
-
|
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
|
-
|
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.
|
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
|