obbistrano 1.0.76 → 1.0.77
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/obbistrano_tasks.rb +11 -1
- data/obbistrano.gemspec +1 -1
- metadata +1 -1
data/lib/obbistrano_tasks.rb
CHANGED
@@ -67,10 +67,15 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
67
67
|
#### Github Namespace.... Allows Auto Creation of Repository, ssh keys and Repo permissions ####
|
68
68
|
|
69
69
|
namespace :github do
|
70
|
-
|
70
|
+
|
71
|
+
task :init do
|
71
72
|
puts "*** You need to specify a github login and token to run this operation" if !defined? "#{github_login}" || !defined? "#{github_token}"
|
72
73
|
exit if !defined? "#{github_login}" || !defined? "#{github_token}"
|
73
74
|
api = GithubApi.new("#{github_login}", "#{github_token}")
|
75
|
+
end
|
76
|
+
|
77
|
+
task :setup do
|
78
|
+
github:init
|
74
79
|
params = {
|
75
80
|
:name =>"#{application}",
|
76
81
|
:body =>"Project for #{application}",
|
@@ -82,6 +87,11 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
82
87
|
api.add_collaborator("Sheldon")
|
83
88
|
api.add_collaborator("charlesmarshall")
|
84
89
|
api.add_collaborator("MichalNoskovic")
|
90
|
+
github:key
|
91
|
+
end
|
92
|
+
|
93
|
+
task :key do
|
94
|
+
github:init
|
85
95
|
app:ssh_key
|
86
96
|
server_ssh_key = capture("cat .ssh/id_rsa.pub")
|
87
97
|
server_ssh_key
|
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.77"
|
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=
|