obbistrano 1.1.81 → 1.1.82

Sign up to get free protection for your applications and to get access to all the features.
data/lib/obbistrano.rb CHANGED
@@ -1,5 +1,3 @@
1
- require "slicehost" if defined? SLICEHOST_API_PASSWORD
2
- require "githubapi"
3
1
  require 'colored'
4
2
  require 'fileutils'
5
3
  require 'inifile'
data/obbistrano.gemspec CHANGED
@@ -2,14 +2,14 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{obbistrano}
5
- s.version = "1.1.81"
5
+ s.version = "1.1.82"
6
6
  s.authors = ["Ross Riley", "One Black Bear"]
7
7
  s.date = Time.now
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib"]
10
10
  s.description = %q{An extension to Capistrano to allow deploys to Slicehost for One Black Bear}
11
11
  s.email = %q{ross@oneblackbear.com}
12
- s.files = ["README.textile", "obbistrano.gemspec", "lib/obbistrano.rb","lib/githubapi.rb", "lib/slicehost.rb", "lib/obbistrano_tasks.rb", "lib/templates/apache_vhost.erb"]
12
+ s.files = ["README.textile", "obbistrano.gemspec", "lib/obbistrano.rb", "lib/obbistrano_tasks.rb", "lib/templates/apache_vhost.erb"]
13
13
  s.homepage = %q{http://github.com/oneblackbear/obbistrano}
14
14
  s.rubygems_version = %q{1.3.0}
15
15
  s.summary = %q{Adds extra namespaces to Capistrano to allow simple setup, deploys and maintenance.}
@@ -19,7 +19,5 @@ Gem::Specification.new do |s|
19
19
  s.add_dependency 'colored', ">= 1.2.0"
20
20
  s.add_dependency 'inifile', ">= 2.0.2"
21
21
  s.add_dependency 'capistrano-maintenance', '0.0.2'
22
- s.add_dependency 'httparty', '>= 0.4.3'
23
- s.add_dependency 'activeresource', '>= 2'
24
22
 
25
23
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 81
9
- version: 1.1.81
8
+ - 82
9
+ version: 1.1.82
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ross Riley
@@ -74,32 +74,6 @@ dependencies:
74
74
  version: 0.0.2
75
75
  type: :runtime
76
76
  version_requirements: *id004
77
- - !ruby/object:Gem::Dependency
78
- name: httparty
79
- prerelease: false
80
- requirement: &id005 !ruby/object:Gem::Requirement
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- segments:
85
- - 0
86
- - 4
87
- - 3
88
- version: 0.4.3
89
- type: :runtime
90
- version_requirements: *id005
91
- - !ruby/object:Gem::Dependency
92
- name: activeresource
93
- prerelease: false
94
- requirement: &id006 !ruby/object:Gem::Requirement
95
- requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- segments:
99
- - 2
100
- version: "2"
101
- type: :runtime
102
- version_requirements: *id006
103
77
  description: An extension to Capistrano to allow deploys to Slicehost for One Black Bear
104
78
  email: ross@oneblackbear.com
105
79
  executables: []
@@ -112,8 +86,6 @@ files:
112
86
  - README.textile
113
87
  - obbistrano.gemspec
114
88
  - lib/obbistrano.rb
115
- - lib/githubapi.rb
116
- - lib/slicehost.rb
117
89
  - lib/obbistrano_tasks.rb
118
90
  - lib/templates/apache_vhost.erb
119
91
  has_rdoc: true
data/lib/githubapi.rb DELETED
@@ -1,45 +0,0 @@
1
- require 'rubygems'
2
- require "httparty"
3
-
4
- class GithubApi
5
- include HTTParty
6
- base_uri "https://github.com/api/v2/yaml"
7
-
8
- attr_accessor :format, :login, :token, :repo, :base_uri
9
-
10
- def initialize(login = nil, token = nil, format = "yaml")
11
- @format = format
12
- if login
13
- @login = login
14
- @token = token
15
- end
16
- end
17
-
18
- def create_repo(params)
19
- uri = uri = "#{self.class.base_uri}/repos/create"
20
- post_params = {"login"=>@login, "token"=>@token}
21
- self.class.post(uri, :query=>post_params.merge(params))
22
- end
23
-
24
- def add_collaborator(user)
25
- uri = "#{self.class.base_uri}/repos/collaborators/#{@repo}/add/#{user}"
26
- post_params = {"login"=>@login, "token"=>@token}
27
- self.class.post(uri, :query=>post_params)
28
- end
29
-
30
- def add_key(params)
31
- uri = "#{self.class.base_uri}/repos/key/#{@repo}/add"
32
- post_params = {"login"=>@login, "token"=>@token}
33
- params = post_params.merge(params)
34
- self.class.post(uri, :query=>post_params.merge(params))
35
- end
36
-
37
- def create_issue(params)
38
- uri = "#{self.class.base_uri}/issues/open/#{@login}/#{@repo}"
39
- post_params = {"login"=>@login, "token"=>@token}
40
- params = post_params.merge(params)
41
- self.class.post(uri, :query=>post_params.merge(params))
42
- end
43
-
44
- end
45
-
data/lib/slicehost.rb DELETED
@@ -1,16 +0,0 @@
1
- require 'rubygems'
2
- require 'active_resource'
3
-
4
- TTL = 86400
5
-
6
- class Record < ActiveResource::Base
7
- self.site = "https://#{SLICEHOST_API_PASSWORD}@api.slicehost.com/"
8
- end
9
-
10
- class Zone < ActiveResource::Base
11
- self.site = "https://#{SLICEHOST_API_PASSWORD}@api.slicehost.com/"
12
- end
13
-
14
- class Slice < ActiveResource::Base
15
- self.site = "https://#{SLICEHOST_API_PASSWORD}@api.slicehost.com/"
16
- end