lobot 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -51,7 +51,7 @@ Edit config/ci.yml
51
51
  server:
52
52
  name: run 'rake ci:server_start to populate'
53
53
  instance_id: run 'rake ci:server_start to populate'
54
- build_command: ./cruise_build.sh
54
+ build_command: ./script/ci_build.sh
55
55
  ec2_server_access:
56
56
  key_pair_name: myapp_ci
57
57
  id_rsa_path: ~/.ssh/id_rsa
data/docs/ci_yml.md CHANGED
@@ -29,7 +29,7 @@ The name is the server's machine name - either ip address or DNS name. Usually
29
29
  # instance_id:
30
30
  The instance_id is also saved, in order to facilitate stopping and starting instances. Stopping" is AWS's term for shutting down an instance temporarily - when it is started, it will use the same EBS volume and continue where it left off. However, it will receive a new ip address and DNS name.
31
31
 
32
- # build_command: ./cruise_build.sh
32
+ # build_command: ./script/ci_build.sh
33
33
  The build command is the shell script that Jenkins will execute to run your build. While you could put this script is the Jenkins configuration, it's clearer to have it in a script directly checked into your project.
34
34
 
35
35
  # ec2_server_access:
data/features/ci.feature CHANGED
@@ -4,6 +4,14 @@ Feature: CI
4
4
  Given the temp directory is clean
5
5
  Given I am in the temp directory
6
6
 
7
+ Scenario: Installing Lobot on a rails3 project
8
+ When I create a new Rails project using a Rails template
9
+ And I vendor Lobot
10
+ And I put Lobot in the Gemfile
11
+ And I run bundle install
12
+ And I run the Lobot generator
13
+ Then rake reports ci tasks as being available
14
+
7
15
  Scenario: Install CI on Amazon AWS using new Rails template
8
16
  When I create a new Rails project using a Rails template
9
17
  And I vendor Lobot
@@ -18,11 +26,3 @@ Feature: CI
18
26
  And I bootstrap
19
27
  And I deploy
20
28
  Then CI is green
21
-
22
- Scenario: Installing Lobot on a rails3 project
23
- When I create a new Rails project using a Rails template
24
- And I vendor Lobot
25
- And I put Lobot in the Gemfile
26
- And I run bundle install
27
- And I run the Lobot generator
28
- Then rake reports ci tasks as being available
@@ -1,6 +1,4 @@
1
1
  {
2
- "libxml2" => "2.6.26-2.1.12",
3
- "libxml2-devel" => "2.6.26-2.1.12",
4
2
  "libxslt" => "1.1.17-2.el5_2.2",
5
3
  "libxslt-devel" => "1.1.17-2.el5_2.2",
6
4
  }.each do |package_name, version_string|
@@ -138,7 +138,7 @@ namespace :ci do
138
138
  )
139
139
 
140
140
  server = aws_connection.servers.new(:id => server_config['instance_id'])
141
- # server.start
141
+ server.start
142
142
  server.wait_for { ready? }
143
143
 
144
144
  aws_connection.associate_address(server_config['instance_id'], server_config['elastic_ip']) if server_config['elastic_ip']
data/lib/lobot/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lobot
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.5"
3
3
  end
data/spec/install_spec.rb CHANGED
@@ -14,14 +14,19 @@ describe Lobot::InstallGenerator do
14
14
  assert_file "config/ci.yml", /app_name/
15
15
  end
16
16
 
17
- it "creates ci.rake" do
18
- assert_file "lib/tasks/ci.rake", /namespace :ci do/
19
- end
20
-
21
17
  it "create bootstrap_server.sh" do
22
18
  assert_file "script/bootstrap_server.sh", /bin\/bash/
23
19
  end
24
20
 
21
+ it "creates a ci_build.sh file" do
22
+ assert_file "script/ci_build.sh"
23
+ end
24
+
25
+ it "appends ci task to Rakefile" do
26
+ rakefile_contents = File.read("#{destination_root}/lib/tasks/ci.rake")
27
+ rakefile_contents.should include("task :build")
28
+ end
29
+
25
30
  context "Capfile exists" do
26
31
  it "appends a load path to the Capfile" do
27
32
  prepare_destination
@@ -29,7 +34,6 @@ describe Lobot::InstallGenerator do
29
34
  run_generator
30
35
  assert_file "Capfile", "load 'config/capistrano/ci'\nline 2\n"
31
36
  end
32
-
33
37
  end
34
38
 
35
39
  context "Capfile doesn't exist" do
@@ -64,5 +68,4 @@ describe Lobot::InstallGenerator do
64
68
  end
65
69
  end
66
70
  end
67
-
68
71
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lobot
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 4
10
- version: 0.9.4
9
+ - 5
10
+ version: 0.9.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthew Kocher & Lee Edwards
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-03 00:00:00 Z
18
+ date: 2011-12-01 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: fog