magic_recipes 0.0.29 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/bin/git_cap CHANGED
@@ -1,38 +1,50 @@
1
1
  #!/usr/bin/expect -f
2
+ #
2
3
  # Expect script to supply username/password to cap deploy to git private repository
4
+ #
3
5
  # This script needs username and password as arguments to connect to git server:
4
6
  # ------------------------------------------------------------------------
5
7
  # ./git_cap gitusr gitpwd
6
8
  # -------------------------------------------------------------------------
9
+ #
7
10
  # set Variables
8
- set g_user [lrange $argv 0 0]
9
- set g_pwd [lrange $argv 1 1]
10
- set timeout -1
11
+ #
12
+ set g_user [lrange $argv 0 0]
13
+ set g_pwd [lrange $argv 1 1]
14
+ #
15
+ # Regular Expressions ... http://docs.activestate.com/activetcl/8.5/expect4win/regex.html
16
+ #
17
+ set ulook ".?sername for 'https:\/\/github\.com':.*"
18
+ set plook ".?assword for .*@github\.com':.*"
19
+ #
20
+ # set TimeOut
21
+ #
22
+ set timeout -1
23
+
24
+ #
25
+ # start deployment .. expects git_user + git_password 2 times !
26
+ #
11
27
 
12
28
  spawn cap deploy
13
29
  match_max 100000
14
30
 
15
31
  # Look for user prompt
16
- # expect "*?sername:*"
17
- expect "*?sername for 'https://github.com':*"
32
+ expect -re $ulook
18
33
  send -- "$g_user\r"
19
34
  send -- "\r"
20
35
 
21
36
  # Look for passwod prompt
22
- # expect "*?assword:*"
23
- expect "*?assword for *@github.com':*"
37
+ expect -re $plook
24
38
  send -- "$g_pwd\r"
25
39
  send -- "\r"
26
40
 
27
41
  # Look for user prompt
28
- # expect "*?sername:*"
29
- expect "*?sername for 'https://github.com':*"
42
+ expect -re $ulook
30
43
  send -- "$g_user\r"
31
44
  send -- "\r"
32
45
 
33
46
  # Look for passwod prompt
34
- # expect "*?assword:*"
35
- expect "*?assword for *@github.com':*"
47
+ expect -re $plook
36
48
  send -- "$g_pwd\r"
37
49
  send -- "\r"
38
50
 
@@ -5,30 +5,36 @@
5
5
  # ./git_cap gitusr gitpwd
6
6
  # -------------------------------------------------------------------------
7
7
  # set Variables
8
- set g_user [lrange $argv 0 0]
9
- set g_pwd [lrange $argv 1 1]
8
+ set g_user [lrange $argv 0 0]
9
+ set g_pwd [lrange $argv 1 1]
10
+ set ulook ".?sername for 'https:\/\/github\.com':.*"
11
+ set plook ".?assword for .*@github\.com':.*"
10
12
  set timeout -1
11
13
 
14
+ #
15
+ # Regular Expressions http://docs.activestate.com/activetcl/8.5/expect4win/regex.html
16
+ #
17
+
12
18
  spawn cap deploy
13
19
  match_max 100000
14
20
 
15
21
  # Look for user prompt
16
- expect "*?sername:*"
22
+ expect -re $ulook
17
23
  send -- "$g_user\r"
18
24
  send -- "\r"
19
25
 
20
26
  # Look for passwod prompt
21
- expect "*?assword:*"
27
+ expect -re $plook
22
28
  send -- "$g_pwd\r"
23
29
  send -- "\r"
24
30
 
25
31
  # Look for user prompt
26
- expect "*?sername:*"
32
+ expect -re $ulook
27
33
  send -- "$g_user\r"
28
34
  send -- "\r"
29
35
 
30
36
  # Look for passwod prompt
31
- expect "*?assword:*"
37
+ expect -re $plook
32
38
  send -- "$g_pwd\r"
33
39
  send -- "\r"
34
40
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.29
4
+ version: 0.1.0
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-02-18 00:00:00.000000000 Z
12
+ date: 2013-09-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 3.2.6
21
+ version: 4.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,128 +26,16 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 3.2.6
29
+ version: 4.0.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: capistrano
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - '='
36
- - !ruby/object:Gem::Version
37
- version: 2.9.0
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - '='
44
- - !ruby/object:Gem::Version
45
- version: 2.9.0
46
- - !ruby/object:Gem::Dependency
47
- name: rvm-capistrano
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - '='
52
- - !ruby/object:Gem::Version
53
- version: 1.2.7
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - '='
60
- - !ruby/object:Gem::Version
61
- version: 1.2.7
62
- - !ruby/object:Gem::Dependency
63
- name: rspec-rails
64
32
  requirement: !ruby/object:Gem::Requirement
65
33
  none: false
66
34
  requirements:
67
35
  - - ! '>='
68
36
  - !ruby/object:Gem::Version
69
37
  version: '0'
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- - !ruby/object:Gem::Dependency
79
- name: factory_girl_rails
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: '0'
86
- type: :development
87
- prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
- - !ruby/object:Gem::Dependency
95
- name: capybara
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: '0'
102
- type: :development
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- - !ruby/object:Gem::Dependency
111
- name: guard-rspec
112
- requirement: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ! '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ! '>='
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- - !ruby/object:Gem::Dependency
127
- name: rb-fsevent
128
- requirement: !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ! '>='
132
- - !ruby/object:Gem::Version
133
- version: '0'
134
- type: :development
135
- prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ! '>='
140
- - !ruby/object:Gem::Version
141
- version: '0'
142
- - !ruby/object:Gem::Dependency
143
- name: growl
144
- requirement: !ruby/object:Gem::Requirement
145
- none: false
146
- requirements:
147
- - - ! '>='
148
- - !ruby/object:Gem::Version
149
- version: '0'
150
- type: :development
38
+ type: :runtime
151
39
  prerelease: false
152
40
  version_requirements: !ruby/object:Gem::Requirement
153
41
  none: false
@@ -156,14 +44,14 @@ dependencies:
156
44
  - !ruby/object:Gem::Version
157
45
  version: '0'
158
46
  - !ruby/object:Gem::Dependency
159
- name: cucumber-rails
47
+ name: rvm-capistrano
160
48
  requirement: !ruby/object:Gem::Requirement
161
49
  none: false
162
50
  requirements:
163
51
  - - ! '>='
164
52
  - !ruby/object:Gem::Version
165
53
  version: '0'
166
- type: :development
54
+ type: :runtime
167
55
  prerelease: false
168
56
  version_requirements: !ruby/object:Gem::Requirement
169
57
  none: false
@@ -172,7 +60,7 @@ dependencies:
172
60
  - !ruby/object:Gem::Version
173
61
  version: '0'
174
62
  - !ruby/object:Gem::Dependency
175
- name: database_cleaner
63
+ name: rspec-rails
176
64
  requirement: !ruby/object:Gem::Requirement
177
65
  none: false
178
66
  requirements:
@@ -251,7 +139,6 @@ files:
251
139
  - spec/dummy/config/locales/en.yml
252
140
  - spec/dummy/config/routes.rb
253
141
  - spec/dummy/config.ru
254
- - spec/dummy/log/development.log
255
142
  - spec/dummy/public/404.html
256
143
  - spec/dummy/public/422.html
257
144
  - spec/dummy/public/500.html
File without changes