stackfu 0.1.8 → 0.1.8.1

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -43,7 +43,6 @@ spec/fixtures/scripts/none.json
43
43
  spec/fixtures/scripts/not_found.json
44
44
  spec/fixtures/scripts/password.json
45
45
  spec/fixtures/scripts/pwned.json
46
- spec/fixtures/scripts/pwned1.json
47
46
  spec/fixtures/scripts/script_not_found.json
48
47
  spec/fixtures/servers/all.json
49
48
  spec/fixtures/servers/cannot_deploy.json
@@ -53,6 +52,7 @@ spec/fixtures/servers/not_found.json
53
52
  spec/fixtures/servers/webbynode.json
54
53
  spec/fixtures/users/fcoury.json
55
54
  spec/fixtures/users/fcoury/mongodb.json
55
+ spec/fixtures/users/notfound.json
56
56
  spec/spec_helper.rb
57
57
  spec/stackfu/api_hooks_spec.rb
58
58
  spec/stackfu/commands/deploy_command_spec.rb
@@ -73,7 +73,6 @@ stackfu-installer/script/resque_installation.sh.erb
73
73
  stackfu-installer/script/ruby_environment.sh.erb
74
74
  stackfu-installer/script/stackfu.sh.erb
75
75
  stackfu-installer/stack.yml
76
- stackfu.gemspec
77
76
  templates/01-controls.yml.erb
78
77
  templates/02-requirements.yml.erb
79
78
  templates/03-executions.yml.erb
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'rake/testtask'
4
4
 
5
5
  require 'echoe'
6
6
 
7
- Echoe.new('stackfu', '0.1.8') do |p|
7
+ Echoe.new('stackfu', '0.1.8.1') do |p|
8
8
  p.description = "StackFu Backend"
9
9
  p.url = "http://stackfu.com/cli"
10
10
  p.author = "Felipe Coury"
data/lib/stackfu.rb CHANGED
@@ -52,7 +52,7 @@ require "#{dir}/commands/dump_command"
52
52
  ActiveSupport::Deprecation.silenced = true
53
53
 
54
54
  module StackFu
55
- VERSION = '0.1.8'
55
+ VERSION = '0.1.8.1'
56
56
  API = ENV['STACKFU_ENV'] == 'development' ? "http://localhost:3000" : "https://beta.stackfu.com"
57
57
  CONFIG_FILE = "#{ENV['HOME']}/.stackfu"
58
58
 
@@ -1,9 +1,11 @@
1
1
  module StackFu::Commands
2
2
  class DumpCommand < Command
3
3
  include StackFu::ApiHooks
4
+ aliases :clone
4
5
 
5
6
  def default(parameters, options)
6
7
  script_name = parameters[0]
8
+ user_name = ''
7
9
 
8
10
  unless script_name
9
11
  puts "You have to tell which script you want to dump."
@@ -15,6 +17,7 @@ module StackFu::Commands
15
17
  if script_name.include?('/')
16
18
  user_name, script_name = script_name.split('/')
17
19
  user = User.new(:id => user_name)
20
+ user_name = "#{user_name}/"
18
21
  Script.new(user.get(script_name))
19
22
  else
20
23
  Script.find(script_name)
@@ -35,7 +38,8 @@ module StackFu::Commands
35
38
  create_file "#{script_name}/script.yml", {
36
39
  "type" => "script",
37
40
  "name" => script.name,
38
- "description" => script.respond_to?(:description) ? script.description : ""
41
+ "description" => script.respond_to?(:description) ? script.description : "",
42
+ "tags" => script.respond_to?(:tags) ? script.tags : ""
39
43
  }.to_yaml
40
44
 
41
45
  create_folder "#{script_name}/config"
@@ -116,9 +120,9 @@ module StackFu::Commands
116
120
  create_file "#{script_name}/executables/#{script.description.downcase.gsub(" ", "_")}.sh.erb", script.body
117
121
  end
118
122
 
119
- done "Script #{script_name} dumped."
123
+ done "Script #{user_name}#{script_name} dumped."
120
124
  else
121
- error "Script '#{script_name}' was not found"
125
+ error "Script '#{user_name}#{script_name}' was not found"
122
126
  end
123
127
  end
124
128
 
@@ -23,7 +23,7 @@ module StackFu::Commands
23
23
  puts " #{"publish".foreground(:cyan)} publishes the item on the current folder to StackFu.com"
24
24
  puts ""
25
25
  puts " For a complete guide on using StackFu from command line:"
26
- puts " #{"http://stackfu.com/guides/stackfu-cli".underline}"
26
+ puts " #{"http://docs.stackfu.com/usage/".underline}"
27
27
  end
28
28
  end
29
29
  end
@@ -3,7 +3,7 @@ module StackFu::Commands
3
3
 
4
4
  class PublishCommand < Command
5
5
  include StackFu::ApiHooks
6
- aliases :pub
6
+ aliases :pub, :push
7
7
 
8
8
  def stack?
9
9
  File.exists?("stack.yml")
@@ -6,7 +6,7 @@ Content-Type: application/json; charset=utf-8
6
6
  Date: Thu, 14 Oct 2010 21:34:02 GMT
7
7
  Server: WEBrick/1.3.1 (Ruby/1.8.7/2009-12-24)
8
8
  X-Runtime: 1.295549
9
- Content-Length: 984
9
+ Content-Length: 995
10
10
  Cache-Control: max-age=0, private, must-revalidate
11
11
 
12
- {"controls":[{"required":true,"name":"grade","label":"Grade","_id":"4cb776acd489e8ee82000045","_type":"Textbox","validations":{"maxlength":1,"matches":"^[A|B|C]$"},"validation_messages":{"maxlength":"must have 1 or less characters!","matches":"must be A, B or C"}},{"required":false,"name":"school","label":"School","_id":"4cb776acd489e8ee82000046","_type":"Radio","options":[[1,"one"]]}],"name":"pwned","slug":"pwned","created_at":"2010-10-14T21:31:24Z","deploy_count":0,"updated_at":"2010-10-14T21:31:24Z","_id":"4cb776acd489e8ee82000048","tags":[],"watching_users_count":1,"user_id":"4c8585167d7c425923000003","executions":[{"body":"# \n# mydear.sh\n# Thu Oct 14 11:08:19 -0300 2010\n#\n\n# TODO: Replace the contents of this file with \"Mydear\"\necho [<%= Time.now %>] Installing -- Mydear\n","_id":"4cb776acd489e8ee82000047","_type":"Executable","file":"mydear","description":"Mydear"}],"description":"Add your description here","watching_user_ids":["4c8585167d7c425923000003"]}
12
+ {"controls":[{"required":true,"name":"grade","label":"Grade","_id":"4cb776acd489e8ee82000045","_type":"Textbox","validations":{"maxlength":1,"matches":"^[A|B|C]$"},"validation_messages":{"maxlength":"must have 1 or less characters!","matches":"must be A, B or C"}},{"required":false,"name":"school","label":"School","_id":"4cb776acd489e8ee82000046","_type":"Radio","options":[[1,"one"]]}],"name":"pwned","slug":"pwned","created_at":"2010-10-14T21:31:24Z","deploy_count":0,"updated_at":"2010-10-14T21:31:24Z","_id":"4cb776acd489e8ee82000048","tags":["one","two"],"watching_users_count":1,"user_id":"4c8585167d7c425923000003","executions":[{"body":"# \n# mydear.sh\n# Thu Oct 14 11:08:19 -0300 2010\n#\n\n# TODO: Replace the contents of this file with \"Mydear\"\necho [<%= Time.now %>] Installing -- Mydear\n","_id":"4cb776acd489e8ee82000047","_type":"Executable","file":"mydear","description":"Mydear"}],"description":"Add your description here","watching_user_ids":["4c8585167d7c425923000003"]}
@@ -0,0 +1,11 @@
1
+ HTTP/1.1 404 Not Found
2
+ X-Ua-Compatible: IE=Edge,chrome=1
3
+ Connection: Keep-Alive
4
+ Content-Type: application/json; charset=utf-8
5
+ Date: Fri, 15 Oct 2010 14:06:47 GMT
6
+ Server: WEBrick/1.3.1 (Ruby/1.8.7/2009-12-24)
7
+ X-Runtime: 0.586683
8
+ Content-Length: 9
9
+ Cache-Control: no-cache
10
+
11
+ Not found
@@ -53,6 +53,36 @@ describe StackFu::Commands::DumpCommand do
53
53
  stdout.should =~ /^Success: Script firewall dumped/
54
54
  end
55
55
 
56
+ it "dumps another user's script when using user/script" do
57
+ prepare :get, "/users/fcoury/firewall.json", "/scripts/firewall.json"
58
+
59
+ StackFu::Commands::DumpCommand.any_instance.tap do |cmd|
60
+ cmd.expects(:directory?).with("firewall").returns(false)
61
+ cmd.stubs(:write_file)
62
+ end
63
+
64
+ command "dump fcoury/firewall"
65
+ stdout.should =~ /^\tcreate firewall\//
66
+ stdout.should =~ /^\tcreate firewall\/script.yml/
67
+ stdout.should =~ /^\tcreate firewall\/config\//
68
+ stdout.should =~ /^\tcreate firewall\/config\/01-controls.yml/
69
+ stdout.should =~ /^\tcreate firewall\/config\/02-requirements.yml/
70
+ stdout.should =~ /^\tcreate firewall\/config\/03-executions.yml/
71
+ stdout.should =~ /^\tcreate firewall\/config\/04-validations.yml/
72
+ stdout.should =~ /^\tcreate firewall\/executables\//
73
+ stdout.should =~ /^\tcreate firewall\/executables\//
74
+ stdout.should =~ /^\tcreate firewall\/executables\/install_ufw.sh.erb/
75
+ stdout.should =~ /^\tcreate firewall\/executables\/configure_ufw.sh.erb/
76
+ stdout.should =~ /^Success: Script fcoury\/firewall dumped/
77
+ end
78
+
79
+ it "reports script not found" do
80
+ prepare :get, "/users/fcoury/firewall.json", "/scripts/script_not_found.json"
81
+
82
+ command "dump fcoury/firewall"
83
+ stdout.should =~ /Script 'fcoury\/firewall' was not found/
84
+ end
85
+
56
86
  it "dumps required" do
57
87
  prepare :get, "/scripts/pwned.json"
58
88
 
@@ -73,6 +103,25 @@ describe StackFu::Commands::DumpCommand do
73
103
 
74
104
  command "dump pwned"
75
105
  end
106
+
107
+ it "dumps tags" do
108
+ prepare :get, "/scripts/pwned.json"
109
+
110
+ StackFu::Commands::DumpCommand.any_instance.tap do |cmd|
111
+ cmd.expects(:directory?).with("pwned").returns(false)
112
+ cmd.expects(:write_file).at_least_once.with() do |name, contents|
113
+ if name == 'pwned/script.yml'
114
+ controls = YAML.load(contents)
115
+ controls['tags'].should == ['one', 'two']
116
+ end
117
+ true
118
+ end
119
+ end
120
+
121
+ # TODO: check create file for controls
122
+
123
+ command "dump pwned"
124
+ end
76
125
 
77
126
  it "dumps validations" do
78
127
  prepare :get, "/scripts/pwned.json"
data/stackfu.gemspec CHANGED
@@ -2,17 +2,17 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{stackfu}
5
- s.version = "0.1.8"
5
+ s.version = "0.1.8.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Felipe Coury"]
9
- s.date = %q{2010-10-14}
9
+ s.date = %q{2010-10-16}
10
10
  s.default_executable = %q{stackfu}
11
11
  s.description = %q{StackFu Backend}
12
12
  s.email = %q{felipe@stackfu.com}
13
13
  s.executables = ["stackfu"]
14
14
  s.extra_rdoc_files = ["CHANGELOG", "README", "README.md", "bin/stackfu", "lib/stackfu.rb", "lib/stackfu/api_hooks.rb", "lib/stackfu/app.rb", "lib/stackfu/commands/command.rb", "lib/stackfu/commands/config_command.rb", "lib/stackfu/commands/deploy_command.rb", "lib/stackfu/commands/dump_command.rb", "lib/stackfu/commands/generate_command.rb", "lib/stackfu/commands/help_command.rb", "lib/stackfu/commands/list_command.rb", "lib/stackfu/commands/publish_command.rb", "lib/stackfu/commands/server_command.rb", "lib/stackfu/date_helper.rb", "lib/stackfu/helpers/providers_credentials.rb", "lib/stackfu/helpers/rendering.rb", "lib/stackfu/operating_systems.rb"]
15
- s.files = ["CHANGELOG", "Manifest", "README", "README.md", "Rakefile", "autotest/discover.rb", "bin/stackfu", "lib/stackfu.rb", "lib/stackfu/api_hooks.rb", "lib/stackfu/app.rb", "lib/stackfu/commands/command.rb", "lib/stackfu/commands/config_command.rb", "lib/stackfu/commands/deploy_command.rb", "lib/stackfu/commands/dump_command.rb", "lib/stackfu/commands/generate_command.rb", "lib/stackfu/commands/help_command.rb", "lib/stackfu/commands/list_command.rb", "lib/stackfu/commands/publish_command.rb", "lib/stackfu/commands/server_command.rb", "lib/stackfu/date_helper.rb", "lib/stackfu/helpers/providers_credentials.rb", "lib/stackfu/helpers/rendering.rb", "lib/stackfu/operating_systems.rb", "spec/fixtures/deployments/logs.json", "spec/fixtures/deployments/logs_end.json", "spec/fixtures/deployments/logs_failed.json", "spec/fixtures/deployments/logs_middle.json", "spec/fixtures/fcoury.json", "spec/fixtures/scripts/all.json", "spec/fixtures/scripts/create.json", "spec/fixtures/scripts/delete.json", "spec/fixtures/scripts/firewall.json", "spec/fixtures/scripts/firewall/deploy.json", "spec/fixtures/scripts/invalid/script.yml", "spec/fixtures/scripts/missing/config/01-controls.yml", "spec/fixtures/scripts/missing/config/02-requirements.yml", "spec/fixtures/scripts/missing/config/03-executions.yml", "spec/fixtures/scripts/missing/config/04-validations.yml", "spec/fixtures/scripts/missing/script.yml", "spec/fixtures/scripts/mongo.json", "spec/fixtures/scripts/mongo/deploy.json", "spec/fixtures/scripts/none.json", "spec/fixtures/scripts/not_found.json", "spec/fixtures/scripts/password.json", "spec/fixtures/scripts/pwned.json", "spec/fixtures/scripts/pwned1.json", "spec/fixtures/scripts/script_not_found.json", "spec/fixtures/servers/all.json", "spec/fixtures/servers/cannot_deploy.json", "spec/fixtures/servers/no_ip.json", "spec/fixtures/servers/none.json", "spec/fixtures/servers/not_found.json", "spec/fixtures/servers/webbynode.json", "spec/fixtures/users/fcoury.json", "spec/fixtures/users/fcoury/mongodb.json", "spec/spec_helper.rb", "spec/stackfu/api_hooks_spec.rb", "spec/stackfu/commands/deploy_command_spec.rb", "spec/stackfu/commands/dump_command_spec.rb", "spec/stackfu/commands/generate_command_spec.rb", "spec/stackfu/commands/list_command_spec.rb", "spec/stackfu/commands/publish_command_spec.rb", "spec/stackfu/rendering_spec.rb", "stackfu-installer/config/01-controls.yml", "stackfu-installer/config/02-requirements.yml", "stackfu-installer/config/03-executions.yml", "stackfu-installer/config/04-validations.yml", "stackfu-installer/script/dotfiles_installation.sh.erb", "stackfu-installer/script/github_credentials_setup.sh.erb", "stackfu-installer/script/nginx_and_passenger.sh.erb", "stackfu-installer/script/redis_installation.sh.erb", "stackfu-installer/script/resque_installation.sh.erb", "stackfu-installer/script/ruby_environment.sh.erb", "stackfu-installer/script/stackfu.sh.erb", "stackfu-installer/stack.yml", "stackfu.gemspec", "templates/01-controls.yml.erb", "templates/02-requirements.yml.erb", "templates/03-executions.yml.erb", "templates/04-validations.yml.erb", "templates/script.sh.erb", "templates/stack.yml.erb", "test/fixtures/add_server_error", "test/fixtures/deployment_add", "test/fixtures/deployment_add_error", "test/fixtures/deployments", "test/fixtures/logs", "test/fixtures/logs_partial", "test/fixtures/plugin_add", "test/fixtures/plugin_add_error", "test/fixtures/plugin_deployment_add", "test/fixtures/plugin_not_found", "test/fixtures/plugin_unauthorized", "test/fixtures/plugins", "test/fixtures/plugins_by_name", "test/fixtures/plugins_by_name_other", "test/fixtures/plugins_empty", "test/fixtures/plugins_multiple", "test/fixtures/providers", "test/fixtures/providers_servers", "test/fixtures/server_add", "test/fixtures/server_add_dupe", "test/fixtures/server_add_error", "test/fixtures/server_delete", "test/fixtures/server_delete_error", "test/fixtures/servers", "test/fixtures/servers_by_name", "test/fixtures/servers_empty", "test/fixtures/servers_not_found", "test/fixtures/servers_unauthorized", "test/fixtures/servers_webbynode", "test/fixtures/stack/stackfu-installer/config/01-controls.yml", "test/fixtures/stack/stackfu-installer/config/02-requirements.yml", "test/fixtures/stack/stackfu-installer/config/03-scripts.yml", "test/fixtures/stack/stackfu-installer/config/04-validations.yml", "test/fixtures/stack/stackfu-installer/script/dotfiles_installation.sh.erb", "test/fixtures/stack/stackfu-installer/script/github_credentials_setup.sh.erb", "test/fixtures/stack/stackfu-installer/script/nginx_and_passenger.sh.erb", "test/fixtures/stack/stackfu-installer/script/redis_installation.sh.erb", "test/fixtures/stack/stackfu-installer/script/resque_installation.sh.erb", "test/fixtures/stack/stackfu-installer/script/ruby_environment.sh.erb", "test/fixtures/stack/stackfu-installer/script/stackfu.sh.erb", "test/fixtures/stack/stackfu-installer/stack.yml", "test/fixtures/stack_add", "test/fixtures/stack_add_error", "test/fixtures/stack_add_error_dupe", "test/fixtures/stack_adds_by_name", "test/fixtures/stack_delete_not_found", "test/fixtures/stacks", "test/fixtures/stacks_by_name", "test/fixtures/stacks_by_name_other", "test/fixtures/stacks_empty", "test/fixtures/stacks_multiple", "test/fixtures/stacks_not_found", "test/fixtures/stacks_realworld", "test/fixtures/stacks_stackfu-installer", "test/fixtures/stacks_unauthorized", "test/fixtures/stacks_with_controls", "test/fixtures/users", "test/fixtures/users_no_credentials", "test/fixtures/users_update", "test/support/custom_matchers.rb", "test/support/fixtures.rb", "test/support/io_stub.rb", "test/support/web_fixtures.rb", "test/test_helper.rb", "test/unit/commands/test_command.rb", "test/unit/commands/test_config_command.rb", "test/unit/commands/test_deploy_command.rb", "test/unit/commands/test_dump_command.rb", "test/unit/commands/test_generate_command.rb", "test/unit/commands/test_help_command.rb", "test/unit/commands/test_list_command.rb", "test/unit/commands/test_publish_command.rb", "test/unit/commands/test_server_command.rb", "test/unit/helpers/test_rendering.rb", "test/unit/test_array.rb", "test/unit/test_provider.rb", "test/unit/test_stackfu.rb"]
15
+ s.files = ["CHANGELOG", "Manifest", "README", "README.md", "Rakefile", "autotest/discover.rb", "bin/stackfu", "lib/stackfu.rb", "lib/stackfu/api_hooks.rb", "lib/stackfu/app.rb", "lib/stackfu/commands/command.rb", "lib/stackfu/commands/config_command.rb", "lib/stackfu/commands/deploy_command.rb", "lib/stackfu/commands/dump_command.rb", "lib/stackfu/commands/generate_command.rb", "lib/stackfu/commands/help_command.rb", "lib/stackfu/commands/list_command.rb", "lib/stackfu/commands/publish_command.rb", "lib/stackfu/commands/server_command.rb", "lib/stackfu/date_helper.rb", "lib/stackfu/helpers/providers_credentials.rb", "lib/stackfu/helpers/rendering.rb", "lib/stackfu/operating_systems.rb", "spec/fixtures/deployments/logs.json", "spec/fixtures/deployments/logs_end.json", "spec/fixtures/deployments/logs_failed.json", "spec/fixtures/deployments/logs_middle.json", "spec/fixtures/fcoury.json", "spec/fixtures/scripts/all.json", "spec/fixtures/scripts/create.json", "spec/fixtures/scripts/delete.json", "spec/fixtures/scripts/firewall.json", "spec/fixtures/scripts/firewall/deploy.json", "spec/fixtures/scripts/invalid/script.yml", "spec/fixtures/scripts/missing/config/01-controls.yml", "spec/fixtures/scripts/missing/config/02-requirements.yml", "spec/fixtures/scripts/missing/config/03-executions.yml", "spec/fixtures/scripts/missing/config/04-validations.yml", "spec/fixtures/scripts/missing/script.yml", "spec/fixtures/scripts/mongo.json", "spec/fixtures/scripts/mongo/deploy.json", "spec/fixtures/scripts/none.json", "spec/fixtures/scripts/not_found.json", "spec/fixtures/scripts/password.json", "spec/fixtures/scripts/pwned.json", "spec/fixtures/scripts/script_not_found.json", "spec/fixtures/servers/all.json", "spec/fixtures/servers/cannot_deploy.json", "spec/fixtures/servers/no_ip.json", "spec/fixtures/servers/none.json", "spec/fixtures/servers/not_found.json", "spec/fixtures/servers/webbynode.json", "spec/fixtures/users/fcoury.json", "spec/fixtures/users/fcoury/mongodb.json", "spec/fixtures/users/notfound.json", "spec/spec_helper.rb", "spec/stackfu/api_hooks_spec.rb", "spec/stackfu/commands/deploy_command_spec.rb", "spec/stackfu/commands/dump_command_spec.rb", "spec/stackfu/commands/generate_command_spec.rb", "spec/stackfu/commands/list_command_spec.rb", "spec/stackfu/commands/publish_command_spec.rb", "spec/stackfu/rendering_spec.rb", "stackfu-installer/config/01-controls.yml", "stackfu-installer/config/02-requirements.yml", "stackfu-installer/config/03-executions.yml", "stackfu-installer/config/04-validations.yml", "stackfu-installer/script/dotfiles_installation.sh.erb", "stackfu-installer/script/github_credentials_setup.sh.erb", "stackfu-installer/script/nginx_and_passenger.sh.erb", "stackfu-installer/script/redis_installation.sh.erb", "stackfu-installer/script/resque_installation.sh.erb", "stackfu-installer/script/ruby_environment.sh.erb", "stackfu-installer/script/stackfu.sh.erb", "stackfu-installer/stack.yml", "templates/01-controls.yml.erb", "templates/02-requirements.yml.erb", "templates/03-executions.yml.erb", "templates/04-validations.yml.erb", "templates/script.sh.erb", "templates/stack.yml.erb", "test/fixtures/add_server_error", "test/fixtures/deployment_add", "test/fixtures/deployment_add_error", "test/fixtures/deployments", "test/fixtures/logs", "test/fixtures/logs_partial", "test/fixtures/plugin_add", "test/fixtures/plugin_add_error", "test/fixtures/plugin_deployment_add", "test/fixtures/plugin_not_found", "test/fixtures/plugin_unauthorized", "test/fixtures/plugins", "test/fixtures/plugins_by_name", "test/fixtures/plugins_by_name_other", "test/fixtures/plugins_empty", "test/fixtures/plugins_multiple", "test/fixtures/providers", "test/fixtures/providers_servers", "test/fixtures/server_add", "test/fixtures/server_add_dupe", "test/fixtures/server_add_error", "test/fixtures/server_delete", "test/fixtures/server_delete_error", "test/fixtures/servers", "test/fixtures/servers_by_name", "test/fixtures/servers_empty", "test/fixtures/servers_not_found", "test/fixtures/servers_unauthorized", "test/fixtures/servers_webbynode", "test/fixtures/stack/stackfu-installer/config/01-controls.yml", "test/fixtures/stack/stackfu-installer/config/02-requirements.yml", "test/fixtures/stack/stackfu-installer/config/03-scripts.yml", "test/fixtures/stack/stackfu-installer/config/04-validations.yml", "test/fixtures/stack/stackfu-installer/script/dotfiles_installation.sh.erb", "test/fixtures/stack/stackfu-installer/script/github_credentials_setup.sh.erb", "test/fixtures/stack/stackfu-installer/script/nginx_and_passenger.sh.erb", "test/fixtures/stack/stackfu-installer/script/redis_installation.sh.erb", "test/fixtures/stack/stackfu-installer/script/resque_installation.sh.erb", "test/fixtures/stack/stackfu-installer/script/ruby_environment.sh.erb", "test/fixtures/stack/stackfu-installer/script/stackfu.sh.erb", "test/fixtures/stack/stackfu-installer/stack.yml", "test/fixtures/stack_add", "test/fixtures/stack_add_error", "test/fixtures/stack_add_error_dupe", "test/fixtures/stack_adds_by_name", "test/fixtures/stack_delete_not_found", "test/fixtures/stacks", "test/fixtures/stacks_by_name", "test/fixtures/stacks_by_name_other", "test/fixtures/stacks_empty", "test/fixtures/stacks_multiple", "test/fixtures/stacks_not_found", "test/fixtures/stacks_realworld", "test/fixtures/stacks_stackfu-installer", "test/fixtures/stacks_unauthorized", "test/fixtures/stacks_with_controls", "test/fixtures/users", "test/fixtures/users_no_credentials", "test/fixtures/users_update", "test/support/custom_matchers.rb", "test/support/fixtures.rb", "test/support/io_stub.rb", "test/support/web_fixtures.rb", "test/test_helper.rb", "test/unit/commands/test_command.rb", "test/unit/commands/test_config_command.rb", "test/unit/commands/test_deploy_command.rb", "test/unit/commands/test_dump_command.rb", "test/unit/commands/test_generate_command.rb", "test/unit/commands/test_help_command.rb", "test/unit/commands/test_list_command.rb", "test/unit/commands/test_publish_command.rb", "test/unit/commands/test_server_command.rb", "test/unit/helpers/test_rendering.rb", "test/unit/test_array.rb", "test/unit/test_provider.rb", "test/unit/test_stackfu.rb", "stackfu.gemspec"]
16
16
  s.homepage = %q{http://stackfu.com/cli}
17
17
  s.post_install_message = %q{
18
18
  --==-- StackFu - Server Deployment Engine --==--
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: 11
4
+ hash: 101
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
9
  - 8
10
- version: 0.1.8
10
+ - 1
11
+ version: 0.1.8.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-10-14 00:00:00 -03:00
19
+ date: 2010-10-16 23:00:00 -03:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
@@ -171,7 +172,6 @@ files:
171
172
  - spec/fixtures/scripts/not_found.json
172
173
  - spec/fixtures/scripts/password.json
173
174
  - spec/fixtures/scripts/pwned.json
174
- - spec/fixtures/scripts/pwned1.json
175
175
  - spec/fixtures/scripts/script_not_found.json
176
176
  - spec/fixtures/servers/all.json
177
177
  - spec/fixtures/servers/cannot_deploy.json
@@ -181,6 +181,7 @@ files:
181
181
  - spec/fixtures/servers/webbynode.json
182
182
  - spec/fixtures/users/fcoury.json
183
183
  - spec/fixtures/users/fcoury/mongodb.json
184
+ - spec/fixtures/users/notfound.json
184
185
  - spec/spec_helper.rb
185
186
  - spec/stackfu/api_hooks_spec.rb
186
187
  - spec/stackfu/commands/deploy_command_spec.rb
@@ -201,7 +202,6 @@ files:
201
202
  - stackfu-installer/script/ruby_environment.sh.erb
202
203
  - stackfu-installer/script/stackfu.sh.erb
203
204
  - stackfu-installer/stack.yml
204
- - stackfu.gemspec
205
205
  - templates/01-controls.yml.erb
206
206
  - templates/02-requirements.yml.erb
207
207
  - templates/03-executions.yml.erb
@@ -285,6 +285,7 @@ files:
285
285
  - test/unit/test_array.rb
286
286
  - test/unit/test_provider.rb
287
287
  - test/unit/test_stackfu.rb
288
+ - stackfu.gemspec
288
289
  has_rdoc: true
289
290
  homepage: http://stackfu.com/cli
290
291
  licenses: []
@@ -1,12 +0,0 @@
1
- HTTP/1.1 200 OK
2
- X-Ua-Compatible: IE=Edge,chrome=1
3
- Etag: "178597adbc4a0ad53d5f17fce7b06016"
4
- Connection: Keep-Alive
5
- Content-Type: application/json; charset=utf-8
6
- Date: Thu, 14 Oct 2010 21:34:02 GMT
7
- Server: WEBrick/1.3.1 (Ruby/1.8.7/2009-12-24)
8
- X-Runtime: 1.295549
9
- Content-Length: 984
10
- Cache-Control: max-age=0, private, must-revalidate
11
-
12
- {"controls":[{"required":true,"name":"grade","label":"Grade","_id":"4cb776acd489e8ee82000045","_type":"Textbox","validations":{"maxlength":1,"matches":"^[A|B|C]$"},"validation_messages":{"maxlength":"must have 1 or less characters!","matches":"must be A, B or C"}},{"required":false,"name":"school","label":"School","_id":"4cb776acd489e8ee82000046","_type":"Radio","options":[[1,"one"]]}],"name":"pwned","slug":"pwned","created_at":"2010-10-14T21:31:24Z","deploy_count":0,"updated_at":"2010-10-14T21:31:24Z","_id":"4cb776acd489e8ee82000048","tags":[],"watching_users_count":1,"user_id":"4c8585167d7c425923000003","executions":[{"body":"# \n# mydear.sh\n# Thu Oct 14 11:08:19 -0300 2010\n#\n\n# TODO: Replace the contents of this file with \"Mydear\"\necho [<%= Time.now %>] Installing -- Mydear\n","_id":"4cb776acd489e8ee82000047","_type":"Executable","file":"mydear","description":"Mydear"}],"description":"Add your description here","watching_user_ids":["4c8585167d7c425923000003"]}