poet 0.3.1 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/features/running.feature +17 -0
- data/lib/poet.rb +3 -2
- data/lib/poet/version.rb +1 -1
- metadata +10 -10
data/History.txt
CHANGED
data/features/running.feature
CHANGED
@@ -28,3 +28,20 @@ Feature: Running the program
|
|
28
28
|
When I run `poet --dir missing`
|
29
29
|
Then the output from "poet --dir missing" should contain "missing does not exist"
|
30
30
|
And the exit status should not be 0
|
31
|
+
|
32
|
+
Scenario: User wants to organize his config files in folders
|
33
|
+
Given a directory named "customers"
|
34
|
+
And a file named "customers/first" with:
|
35
|
+
"""
|
36
|
+
Host customer1
|
37
|
+
User me
|
38
|
+
"""
|
39
|
+
And a file named "customers/second" with:
|
40
|
+
"""
|
41
|
+
Host customer2
|
42
|
+
User me
|
43
|
+
"""
|
44
|
+
When I run `poet`
|
45
|
+
Then the exit status should be 0
|
46
|
+
And the file "ssh_config" should contain "Host customer1"
|
47
|
+
And the file "ssh_config" should contain "Host customer2"
|
data/lib/poet.rb
CHANGED
@@ -45,8 +45,9 @@ module Poet
|
|
45
45
|
Process.exit!(2)
|
46
46
|
end
|
47
47
|
|
48
|
-
files = Dir["#{options[:dir]}
|
49
|
-
|
48
|
+
files = Dir["#{options[:dir]}/**/*"].reject do |file|
|
49
|
+
File.directory?(file) || \
|
50
|
+
file =~ /\.disabled$/ && !options[:with].include?("#{File.basename(file, '.disabled')}")
|
50
51
|
end
|
51
52
|
|
52
53
|
files -= [options[:ssh_config]]
|
data/lib/poet/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.4'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cucumber
|
16
|
-
requirement: &
|
16
|
+
requirement: &70266493053500 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70266493053500
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: aruba
|
27
|
-
requirement: &
|
27
|
+
requirement: &70266493053040 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70266493053040
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &70266493052600 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70266493052600
|
47
47
|
description: Split your longish ~/.ssh/config into files in ~/.ssh/config.d/ and let
|
48
48
|
poet join them for you.
|
49
49
|
email:
|
@@ -84,7 +84,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
84
84
|
version: '0'
|
85
85
|
segments:
|
86
86
|
- 0
|
87
|
-
hash:
|
87
|
+
hash: -4363712381040709860
|
88
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
version: '0'
|
94
94
|
segments:
|
95
95
|
- 0
|
96
|
-
hash:
|
96
|
+
hash: -4363712381040709860
|
97
97
|
requirements: []
|
98
98
|
rubyforge_project: poet
|
99
99
|
rubygems_version: 1.8.11
|