skyrunner 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/skyrunner/install_generator.rb +14 -12
- data/lib/skyrunner/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64f9499c7b94195ed79853d1bf3103ef99ec15fc
|
4
|
+
data.tar.gz: b5349e2f7899d1790279f03e2a4739e7e7064a83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88cb88fa15599522943c43e3776ecfb32bea0a003680ec8f8a35b240adb3170e4b2e22a5ed94bc12d9f5a66db140ae35c4d539ae78317fae408a469b0da05870
|
7
|
+
data.tar.gz: e652b1afa0ba6870c5c374039665fa0eba09af77a469702a64a89db416eed12fa1b93a4c4b13972c75f33e09d0a78afbcd916fbcd217600a3e0f39645963af6b
|
@@ -1,24 +1,26 @@
|
|
1
1
|
require 'rails/generators'
|
2
2
|
|
3
3
|
module SkyRunner
|
4
|
-
|
5
|
-
|
4
|
+
module Generators
|
5
|
+
class InstallGenerator < Rails::Generators::Base
|
6
|
+
desc "Generator for SkyRunner configuration files."
|
6
7
|
|
7
|
-
|
8
|
-
|
8
|
+
# Commandline options can be defined here using Thor-like options:
|
9
|
+
#class_option :my_opt, :type => :boolean, :default => false, :desc => "My Option"
|
9
10
|
|
10
|
-
|
11
|
-
|
11
|
+
# I can later access that option using:
|
12
|
+
# options[:my_opt]
|
12
13
|
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
15
|
+
def self.source_root
|
16
|
+
@source_root ||= File.join(File.dirname(__FILE__), 'templates')
|
17
|
+
end
|
17
18
|
|
18
|
-
|
19
|
+
# Generator Code. Remember this is just suped-up Thor so methods are executed in order
|
19
20
|
|
20
|
-
|
21
|
-
|
21
|
+
def create_initializer_file
|
22
|
+
copy_file "config/initializers/skyrunner.rb", "config/initializers/skyrunner.rb"
|
23
|
+
end
|
22
24
|
end
|
23
25
|
end
|
24
26
|
end
|
data/lib/skyrunner/version.rb
CHANGED