stackfu 0.1.1 → 0.1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +4 -0
- data/Manifest +36 -4
- data/Rakefile +1 -1
- data/autotest/discover.rb +1 -0
- data/firewall/config/01-controls.yml +5 -0
- data/firewall/config/02-requirements.yml +4 -0
- data/firewall/config/03-executions.yml +6 -0
- data/firewall/config/03-scripts.yml +6 -0
- data/firewall/config/04-validations.yml +4 -0
- data/firewall/executables/configure_ufw.sh.erb +9 -0
- data/firewall/executables/install_ufw.sh.erb +7 -0
- data/firewall/script/configure_ufw.sh.erb +9 -0
- data/firewall/script/install_ufw.sh.erb +7 -0
- data/firewall/script.yml +8 -0
- data/lib/stackfu/api_hooks.rb +2 -2
- data/lib/stackfu/app.rb +5 -5
- data/lib/stackfu/commands/command.rb +7 -3
- data/lib/stackfu/commands/config_command.rb +1 -1
- data/lib/stackfu/commands/deploy_command.rb +53 -61
- data/lib/stackfu/commands/dump_command.rb +46 -40
- data/lib/stackfu/commands/generate_command.rb +10 -12
- data/lib/stackfu/commands/help_command.rb +1 -1
- data/lib/stackfu/commands/list_command.rb +76 -22
- data/lib/stackfu/commands/publish_command.rb +35 -18
- data/lib/stackfu/commands/server_command.rb +124 -124
- data/lib/stackfu/date_helper.rb +111 -0
- data/lib/stackfu.rb +4 -2
- data/spec/fixtures/scripts/all.json +11 -0
- data/spec/fixtures/scripts/create.json +10 -0
- data/spec/fixtures/scripts/delete.json +10 -0
- data/spec/fixtures/scripts/firewall.json +12 -0
- data/spec/fixtures/scripts/none.json +12 -0
- data/spec/fixtures/scripts/not_found.json +11 -0
- data/spec/fixtures/scripts/script_not_found.json +11 -0
- data/spec/fixtures/servers/all.json +12 -0
- data/spec/fixtures/servers/cannot_deploy.json +0 -0
- data/spec/fixtures/servers/deploy.json +290 -0
- data/spec/fixtures/servers/none.json +12 -0
- data/spec/fixtures/servers/not_found.json +11 -0
- data/spec/fixtures/servers/webbynode/deploy.json +12 -0
- data/spec/fixtures/servers/webbynode.json +12 -0
- data/spec/spec_helper.rb +191 -0
- data/spec/stackfu/api_hooks_spec.rb +7 -0
- data/spec/stackfu/commands/deploy_command_spec.rb +65 -0
- data/spec/stackfu/commands/dump_command_spec.rb +47 -0
- data/spec/stackfu/commands/generate_command_spec.rb +90 -0
- data/spec/stackfu/commands/list_command_spec.rb +53 -0
- data/spec/stackfu/commands/publish_command_spec.rb +67 -0
- data/stackfu.gemspec +4 -4
- data/templates/02-requirements.yml.erb +8 -10
- data/templates/{03-scripts.yml.erb → 03-executions.yml.erb} +3 -3
- data/templates/04-validations.yml.erb +1 -2
- data/templates/stack.yml.erb +4 -13
- data/test/support/fixtures.rb +1 -1
- data/test/unit/commands/test_server_command.rb +259 -259
- metadata +42 -7
- data/test/stack.yml +0 -26
- /data/stackfu-installer/config/{03-scripts.yml → 03-executions.yml} +0 -0
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stackfu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 77
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
+
- 2
|
9
10
|
- 1
|
10
|
-
version: 0.1.1
|
11
|
+
version: 0.1.2.1
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- Felipe Coury
|
@@ -15,7 +16,7 @@ autorequire:
|
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date: 2010-
|
19
|
+
date: 2010-09-07 00:00:00 -03:00
|
19
20
|
default_executable:
|
20
21
|
dependencies:
|
21
22
|
- !ruby/object:Gem::Dependency
|
@@ -121,16 +122,29 @@ extra_rdoc_files:
|
|
121
122
|
- lib/stackfu/commands/list_command.rb
|
122
123
|
- lib/stackfu/commands/publish_command.rb
|
123
124
|
- lib/stackfu/commands/server_command.rb
|
125
|
+
- lib/stackfu/date_helper.rb
|
124
126
|
- lib/stackfu/helpers/providers_credentials.rb
|
125
127
|
- lib/stackfu/helpers/rendering.rb
|
126
128
|
- lib/stackfu/operating_systems.rb
|
127
129
|
files:
|
128
130
|
- CHANGELOG
|
131
|
+
- Gemfile
|
129
132
|
- Manifest
|
130
133
|
- README
|
131
134
|
- README.md
|
132
135
|
- Rakefile
|
136
|
+
- autotest/discover.rb
|
133
137
|
- bin/stackfu
|
138
|
+
- firewall/config/01-controls.yml
|
139
|
+
- firewall/config/02-requirements.yml
|
140
|
+
- firewall/config/03-executions.yml
|
141
|
+
- firewall/config/03-scripts.yml
|
142
|
+
- firewall/config/04-validations.yml
|
143
|
+
- firewall/executables/configure_ufw.sh.erb
|
144
|
+
- firewall/executables/install_ufw.sh.erb
|
145
|
+
- firewall/script.yml
|
146
|
+
- firewall/script/configure_ufw.sh.erb
|
147
|
+
- firewall/script/install_ufw.sh.erb
|
134
148
|
- lib/stackfu.rb
|
135
149
|
- lib/stackfu/api_hooks.rb
|
136
150
|
- lib/stackfu/app.rb
|
@@ -143,12 +157,34 @@ files:
|
|
143
157
|
- lib/stackfu/commands/list_command.rb
|
144
158
|
- lib/stackfu/commands/publish_command.rb
|
145
159
|
- lib/stackfu/commands/server_command.rb
|
160
|
+
- lib/stackfu/date_helper.rb
|
146
161
|
- lib/stackfu/helpers/providers_credentials.rb
|
147
162
|
- lib/stackfu/helpers/rendering.rb
|
148
163
|
- lib/stackfu/operating_systems.rb
|
164
|
+
- spec/fixtures/scripts/all.json
|
165
|
+
- spec/fixtures/scripts/create.json
|
166
|
+
- spec/fixtures/scripts/delete.json
|
167
|
+
- spec/fixtures/scripts/firewall.json
|
168
|
+
- spec/fixtures/scripts/none.json
|
169
|
+
- spec/fixtures/scripts/not_found.json
|
170
|
+
- spec/fixtures/scripts/script_not_found.json
|
171
|
+
- spec/fixtures/servers/all.json
|
172
|
+
- spec/fixtures/servers/cannot_deploy.json
|
173
|
+
- spec/fixtures/servers/deploy.json
|
174
|
+
- spec/fixtures/servers/none.json
|
175
|
+
- spec/fixtures/servers/not_found.json
|
176
|
+
- spec/fixtures/servers/webbynode.json
|
177
|
+
- spec/fixtures/servers/webbynode/deploy.json
|
178
|
+
- spec/spec_helper.rb
|
179
|
+
- spec/stackfu/api_hooks_spec.rb
|
180
|
+
- spec/stackfu/commands/deploy_command_spec.rb
|
181
|
+
- spec/stackfu/commands/dump_command_spec.rb
|
182
|
+
- spec/stackfu/commands/generate_command_spec.rb
|
183
|
+
- spec/stackfu/commands/list_command_spec.rb
|
184
|
+
- spec/stackfu/commands/publish_command_spec.rb
|
149
185
|
- stackfu-installer/config/01-controls.yml
|
150
186
|
- stackfu-installer/config/02-requirements.yml
|
151
|
-
- stackfu-installer/config/03-
|
187
|
+
- stackfu-installer/config/03-executions.yml
|
152
188
|
- stackfu-installer/config/04-validations.yml
|
153
189
|
- stackfu-installer/script/dotfiles_installation.sh.erb
|
154
190
|
- stackfu-installer/script/github_credentials_setup.sh.erb
|
@@ -158,10 +194,9 @@ files:
|
|
158
194
|
- stackfu-installer/script/ruby_environment.sh.erb
|
159
195
|
- stackfu-installer/script/stackfu.sh.erb
|
160
196
|
- stackfu-installer/stack.yml
|
161
|
-
- stackfu.gemspec
|
162
197
|
- templates/01-controls.yml.erb
|
163
198
|
- templates/02-requirements.yml.erb
|
164
|
-
- templates/03-
|
199
|
+
- templates/03-executions.yml.erb
|
165
200
|
- templates/04-validations.yml.erb
|
166
201
|
- templates/script.sh.erb
|
167
202
|
- templates/stack.yml.erb
|
@@ -224,7 +259,6 @@ files:
|
|
224
259
|
- test/fixtures/users
|
225
260
|
- test/fixtures/users_no_credentials
|
226
261
|
- test/fixtures/users_update
|
227
|
-
- test/stack.yml
|
228
262
|
- test/support/custom_matchers.rb
|
229
263
|
- test/support/fixtures.rb
|
230
264
|
- test/support/io_stub.rb
|
@@ -243,6 +277,7 @@ files:
|
|
243
277
|
- test/unit/test_array.rb
|
244
278
|
- test/unit/test_provider.rb
|
245
279
|
- test/unit/test_stackfu.rb
|
280
|
+
- stackfu.gemspec
|
246
281
|
has_rdoc: true
|
247
282
|
homepage: http://stackfu.com/cli
|
248
283
|
licenses: []
|
data/test/stack.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
---
|
2
|
-
type:
|
3
|
-
name: "test"
|
4
|
-
#
|
5
|
-
# TODO: Before submitting this stack, you have to specify
|
6
|
-
# the attributes below.
|
7
|
-
#
|
8
|
-
# Available operating systems
|
9
|
-
#
|
10
|
-
# For OS Use
|
11
|
-
# -------------------- --------------------
|
12
|
-
# Debian 5.0 debian_50
|
13
|
-
# Gentoo 2008 gentoo_2008
|
14
|
-
# Ubuntu 8.10 ubuntu_810
|
15
|
-
# Fedora 10 fedora_10
|
16
|
-
# Arch 2009 arch_2009
|
17
|
-
# Ubuntu 9.04 ubuntu_904
|
18
|
-
# Centos 5.2 centos_52
|
19
|
-
# ArchLinux 2009 arch_2009
|
20
|
-
# Ubuntu 8.04 ubuntu_804
|
21
|
-
# Centos 5.3 centos_53
|
22
|
-
#
|
23
|
-
# operating_system:
|
24
|
-
# description: "Enter a description for this stack here"
|
25
|
-
# tags: [add, some, tags]
|
26
|
-
#
|
File without changes
|