capistrano-hivequeen 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
6
6
  ## If your rubyforge_project name is different, then edit it and comment out
7
7
  ## the sub! line in the Rakefile
8
8
  s.name = 'capistrano-hivequeen'
9
- s.version = '0.1.0'
9
+ s.version = '0.2.0'
10
10
  s.date = '2011-10-03'
11
11
 
12
12
  ## Make sure your summary is short. The description may be as long
@@ -3,6 +3,7 @@ require "capistrano/hivequeen/server"
3
3
 
4
4
  Capistrano::Configuration.instance(:must_exist).load do
5
5
  HiveQueen.endpoint = hivequeen_endpoint
6
+ HiveQueen.project = application
6
7
  HiveQueen.logger = logger
7
8
 
8
9
  # Redefine stage tasks from multistage extension
@@ -8,10 +8,10 @@ require 'fileutils'
8
8
  # - environment not ready: fail
9
9
  class HiveQueen
10
10
  class << self
11
- attr_accessor :endpoint, :logger
11
+ attr_accessor :endpoint, :logger, :project
12
12
 
13
13
  def project_data
14
- @project_data ||= fetch('/projects/kickstarter')
14
+ @project_data ||= fetch("/projects/#{project}")
15
15
  end
16
16
 
17
17
  def environments
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-hivequeen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 0.1.0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aaron Suggs