plugger 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/plugger.rb +30 -1
- metadata +2 -2
data/lib/plugger.rb
CHANGED
@@ -3,7 +3,36 @@ class Plugger
|
|
3
3
|
def self.hi
|
4
4
|
puts "Hi, I'm plugger. This is just a stub."
|
5
5
|
end
|
6
|
-
|
6
|
+
|
7
|
+
end
|
8
|
+
|
9
|
+
module Rails
|
10
|
+
module Generators
|
11
|
+
|
12
|
+
module Actions
|
13
|
+
|
14
|
+
def plugin(name, options)
|
15
|
+
log :plugin, name
|
16
|
+
|
17
|
+
if options[:git] && options[:submodule]
|
18
|
+
options[:git] = "-b #{options[:branch]} #{options[:git]}" if options[:branch]
|
19
|
+
in_root do
|
20
|
+
run "git submodule add #{options[:git]} vendor/plugins/#{name}", :verbose => false
|
21
|
+
end
|
22
|
+
elsif options[:git] || options[:svn]
|
23
|
+
options[:git] = "-b #{options[:branch]} #{options[:git]}" if options[:branch]
|
24
|
+
options[:svn] = "-r #{options[:revision]} #{options[:svn]}" if options[:revision]
|
25
|
+
in_root do
|
26
|
+
`bundle exec plugger install #{options[:svn] || options[:git]} --force`
|
27
|
+
end
|
28
|
+
else
|
29
|
+
log "! no git or svn provided for #{name}. Skipping..."
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
7
36
|
end
|
8
37
|
|
9
38
|
require 'rails/generators'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plugger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-12-12 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A simple thing that loads plugins
|
15
15
|
email: kevin@railsmachine.com
|