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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f93b3bbda87311941ad9ae89405edd54bf0a89b8
4
- data.tar.gz: 01f89af9042ddbd0862bba054890ced0f6d57efe
3
+ metadata.gz: 08a659f49e9c6d19cd862c9ee10137dc41a3f432
4
+ data.tar.gz: 63781ec9865bf54416422131b587d966327672c2
5
5
  SHA512:
6
- metadata.gz: e24410549a03d60116b5959b0f7c729f811ac27e2b238317e97835054752e514eca436e7603b85a1e5965987062f00fa70c98856e9b0084e8f0c8d9d71937037
7
- data.tar.gz: c8edc8d69d2f825b782b919cd969514ea4f7b5915437b8c77a96bb229c0d3de18fb5d6024b0d880b2755db2ceb8388cb1fdb3f3810e5948f72f3b373f75f31a3
6
+ metadata.gz: b02784a5ef76f3bf26947f9af142d644bf80109f0cc4b1f1eedffd60f22ec713b333d208db2322d4d9ae70d9b81e6dc09a11d4591de8528eb78ba1cb30dca2cf
7
+ data.tar.gz: 642096f69b1cfaf175effebb647c84e45d0bfbe705b555b0213190436429fdc61898a9f1d52b8341bf651928bde77ef9a799ea6b6ea9d1549c3dc5f5de2b77a9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clearsight (0.0.1)
4
+ clearsight (0.0.4)
5
5
  methadone (~> 1.3.0)
6
6
 
7
7
  GEM
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
- main do # Add args you want: |like,so|
12
- # your program code here
13
- # You can access CLI options via
14
- # the options Hash
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
- # supplemental methods here
18
-
19
- # Declare command-line interface here
20
-
21
- # description "one line description of your app"
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
@@ -1,3 +1,3 @@
1
1
  module Clearsight
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clearsight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamon Holmgren