oneblackbear-obbistrano 1.0.47 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/obbistrano_tasks.rb +18 -1
- data/lib/slicehost.rb +3 -3
- data/obbistrano.gemspec +4 -1
- metadata +11 -1
data/lib/obbistrano_tasks.rb
CHANGED
@@ -7,6 +7,8 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
|
10
|
+
#### Slicehost Namespace.... Allows Auto Creation of DNS ####
|
11
|
+
|
10
12
|
namespace :slicehost do
|
11
13
|
|
12
14
|
desc "Sets up slicehost DNS for each of the servers specified with a role of web."
|
@@ -35,7 +37,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
35
37
|
|
36
38
|
desc "Sets up slicehost DNS for Google Apps usage on each of the servers specified with a role of web."
|
37
39
|
task :googleapps do
|
38
|
-
|
40
|
+
SLICEHOST_API_PASSWORD = "#{slicehost_api_key}"
|
39
41
|
mx_records = <<-RECORD
|
40
42
|
ASPMX.L.GOOGLE.COM.
|
41
43
|
ALT1.ASPMX.L.GOOGLE.COM.
|
@@ -61,6 +63,21 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
61
63
|
|
62
64
|
end
|
63
65
|
|
66
|
+
|
67
|
+
#### Github Namespace.... Allows Auto Creation of Repository, ssh keys and Repo permissions ####
|
68
|
+
|
69
|
+
namespace :github do
|
70
|
+
|
71
|
+
task :setup do
|
72
|
+
authenticated_with "#{github_login}", "#{github_token}" do |g|
|
73
|
+
repo = g.repository("phpwax")
|
74
|
+
issue = repo.open_issue :title => "Sample issue",
|
75
|
+
:body => "This issue was opened using GitHub API and Octopi"
|
76
|
+
puts issue.number
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
end
|
64
81
|
|
65
82
|
namespace :app do
|
66
83
|
|
data/lib/slicehost.rb
CHANGED
@@ -4,13 +4,13 @@ require 'activeresource'
|
|
4
4
|
TTL = 86400
|
5
5
|
|
6
6
|
class Record < ActiveResource::Base
|
7
|
-
self.site = "https://#{
|
7
|
+
self.site = "https://#{SLICEHOST_API_PASSWORD}@api.slicehost.com/"
|
8
8
|
end
|
9
9
|
|
10
10
|
class Zone < ActiveResource::Base
|
11
|
-
self.site = "https://#{
|
11
|
+
self.site = "https://#{SLICEHOST_API_PASSWORD}@api.slicehost.com/"
|
12
12
|
end
|
13
13
|
|
14
14
|
class Slice < ActiveResource::Base
|
15
|
-
self.site = "https://#{
|
15
|
+
self.site = "https://#{SLICEHOST_API_PASSWORD}@api.slicehost.com/"
|
16
16
|
end
|
data/obbistrano.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{obbistrano}
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.49"
|
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=
|
@@ -20,12 +20,15 @@ Gem::Specification.new do |s|
|
|
20
20
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
21
21
|
s.add_runtime_dependency(%q<capistrano>, [">= 2.5"])
|
22
22
|
s.add_runtime_dependency(%q<activeresource>, [">= 2"])
|
23
|
+
s.add_runtime_dependency(%q<octopi>, [">= 0.8"])
|
23
24
|
else
|
24
25
|
s.add_dependency(%q<capistrano>, [">= 2.5"])
|
25
26
|
s.add_dependency(%q<activeresource>, [">= 2"])
|
27
|
+
s.add_dependency(%q<octopi>, [">= 0.8"])
|
26
28
|
end
|
27
29
|
else
|
28
30
|
s.add_dependency(%q<capistrano>, [">= 2.5"])
|
29
31
|
s.add_dependency(%q<activeresource>, [">= 2"])
|
32
|
+
s.add_dependency(%q<octopi>, [">= 0.8"])
|
30
33
|
end
|
31
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oneblackbear-obbistrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.49
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ross Riley
|
@@ -33,6 +33,16 @@ dependencies:
|
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: "2"
|
35
35
|
version:
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: octopi
|
38
|
+
type: :runtime
|
39
|
+
version_requirement:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: "0.8"
|
45
|
+
version:
|
36
46
|
description: An extension to Capistrano to allow deploys to Slicehost for One Black Bear
|
37
47
|
email: ross@oneblackbear.com
|
38
48
|
executables: []
|