clearsight 0.0.2 → 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/Gemfile.lock +1 -1
- data/bin/cs +27 -24
- data/lib/clearsight/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: 08a659f49e9c6d19cd862c9ee10137dc41a3f432
|
4
|
+
data.tar.gz: 63781ec9865bf54416422131b587d966327672c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b02784a5ef76f3bf26947f9af142d644bf80109f0cc4b1f1eedffd60f22ec713b333d208db2322d4d9ae70d9b81e6dc09a11d4591de8528eb78ba1cb30dca2cf
|
7
|
+
data.tar.gz: 642096f69b1cfaf175effebb647c84e45d0bfbe705b555b0213190436429fdc61898a9f1d52b8341bf651928bde77ef9a799ea6b6ea9d1549c3dc5f5de2b77a9
|
data/Gemfile.lock
CHANGED
data/bin/cs
CHANGED
@@ -7,34 +7,37 @@ require 'clearsight.rb'
|
|
7
7
|
class App
|
8
8
|
include Methadone::Main
|
9
9
|
include Methadone::CLILogging
|
10
|
+
include Methadone::SH
|
11
|
+
|
12
|
+
# Create command line options here. Don't forget to document
|
13
|
+
# them below in the show_help method.
|
14
|
+
main do |command, *args|
|
15
|
+
case command.to_s.to_sym
|
16
|
+
when :deploy then puts "Deploying to #{args.first}..."
|
17
|
+
when :update then update
|
18
|
+
when :help then show_help
|
19
|
+
else
|
20
|
+
puts "Invalid command."
|
21
|
+
show_help
|
22
|
+
end
|
23
|
+
end
|
10
24
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
25
|
+
def self.show_help
|
26
|
+
puts "USAGE:"
|
27
|
+
puts " deploy <setup>"
|
28
|
+
puts " Deploys or sets up deployment to a remote server. Replaces gitdeploysetup."
|
29
|
+
puts " update"
|
30
|
+
puts " Updates the gem. Same as `gem update clearsight`."
|
15
31
|
end
|
16
32
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
#
|
23
|
-
# Accept flags via:
|
24
|
-
# on("--flag VAL","Some flag")
|
25
|
-
# options[flag] will contain VAL
|
26
|
-
#
|
27
|
-
# Specify switches via:
|
28
|
-
# on("--[no-]switch","Some switch")
|
29
|
-
#
|
30
|
-
# Or, just call OptionParser methods on opts
|
31
|
-
#
|
32
|
-
# Require an argument
|
33
|
-
# arg :some_arg
|
34
|
-
#
|
35
|
-
# # Make an argument optional
|
36
|
-
# arg :optional_arg, :optional
|
33
|
+
def self.update
|
34
|
+
print "Updating..."
|
35
|
+
sh "gem update clearsight"
|
36
|
+
puts "done."
|
37
|
+
end
|
37
38
|
|
39
|
+
arg :args, :optional
|
40
|
+
|
38
41
|
version Clearsight::VERSION
|
39
42
|
|
40
43
|
use_log_level_option
|
data/lib/clearsight/version.rb
CHANGED