oneblackbear-obbistrano 1.0.56 → 1.0.57
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/obbistrano.rb +3 -2
- data/lib/obbistrano_tasks.rb +9 -8
- data/obbistrano.gemspec +1 -1
- metadata +1 -1
data/lib/obbistrano.rb
CHANGED
data/lib/obbistrano_tasks.rb
CHANGED
@@ -67,16 +67,17 @@ 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
|
-
|
71
70
|
task :setup do
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
71
|
+
puts "*** You need to specify a github login and token to run this operation" if !defined? "#{github_login}" || !defined? "#{github_token}"
|
72
|
+
exit if !defined? "#{github_login}" || !defined? "#{github_token}"
|
73
|
+
api = GithubApi.new("#{github_login}", "#{github_token}")
|
74
|
+
params = {
|
75
|
+
:name =>"#{application}",
|
76
|
+
:body =>"Project for #{application}"
|
77
|
+
}
|
78
|
+
api.create_repo(params)
|
78
79
|
end
|
79
|
-
|
80
|
+
|
80
81
|
end
|
81
82
|
|
82
83
|
namespace :app do
|
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.57"
|
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=
|