clearsight 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7d11cf987854ec738b2a706bb5bea9c8a4971e22
4
+ data.tar.gz: 77c56474c4060dc114e23bf77c5d8e3f5c32b2ba
5
+ SHA512:
6
+ metadata.gz: e47646131412cf7d20b117a7900ef488bcf1f1842cf092d62cab97f4349ab77c01a339188bb851e83608b2dcade89f085591cbb49fbba08c2dea174584edc154
7
+ data.tar.gz: 7eb9664ab655cf3ba9478ebed21620daff56f7865834dc5fca9edfb3969b3cab95b8444dc71188b4b3ab1a0b39fea5fbc1671072f41d49cd1cd7e0e9f078e986
data/bin/cs ADDED
@@ -0,0 +1,86 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'gli'
4
+ begin # XXX: Remove this begin/rescue before distributing your app
5
+ require 'clearsight'
6
+ rescue LoadError
7
+ STDERR.puts "In development, you need to use `bundle exec bin/clearsight` to run your app"
8
+ STDERR.puts "At install-time, RubyGems will make sure lib, etc. are in the load path"
9
+ STDERR.puts "Feel free to remove this message from bin/clearsight now"
10
+ exit 64
11
+ end
12
+
13
+ include GLI::App
14
+
15
+ program_desc 'Internal CLI tools for ClearSight Studio.'
16
+
17
+ version Clearsight::VERSION
18
+
19
+ desc 'deploy assists in deploying PHP and static websites'
20
+ command :deploy do |c|
21
+ c.action do |global_options,options,args|
22
+ case args.first
23
+ when "setup"
24
+ Clearsight::Deploy.setup(args.last(args.length - 1))
25
+ when nil
26
+ raise "deploy isn't active yet."
27
+ else
28
+ raise "Unknown option."
29
+ end
30
+ end
31
+ end
32
+
33
+ desc 'Describe sshify here'
34
+ arg_name 'Describe arguments to sshify here'
35
+ command :sshify do |c|
36
+ c.action do |global_options,options,args|
37
+ puts "sshify command ran"
38
+ end
39
+ end
40
+
41
+ desc 'Describe clone here'
42
+ arg_name 'Describe arguments to clone here'
43
+ command :clone do |c|
44
+ c.action do |global_options,options,args|
45
+ puts "clone command ran"
46
+ end
47
+ end
48
+
49
+ desc 'Describe killrails here'
50
+ arg_name 'Describe arguments to killrails here'
51
+ command :killrails do |c|
52
+ c.action do |global_options,options,args|
53
+ puts "killrails command ran"
54
+ end
55
+ end
56
+
57
+ desc 'Describe update here'
58
+ arg_name 'Describe arguments to update here'
59
+ command :update do |c|
60
+ c.action do |global_options,options,args|
61
+ puts "update command ran"
62
+ end
63
+ end
64
+
65
+ pre do |global,command,options,args|
66
+ # Pre logic here
67
+ # Return true to proceed; false to abort and not call the
68
+ # chosen command
69
+ # Use skips_pre before a command to skip this block
70
+ # on that command only
71
+ true
72
+ end
73
+
74
+ post do |global,command,options,args|
75
+ # Post logic here
76
+ # Use skips_post before a command to skip this
77
+ # block on that command only
78
+ end
79
+
80
+ on_error do |exception|
81
+ # Error logic here
82
+ # return false to skip default error handling
83
+ true
84
+ end
85
+
86
+ exit run(ARGV)
data/lib/clearsight.rb ADDED
@@ -0,0 +1,5 @@
1
+ require 'clearsight/version.rb'
2
+ require 'clearsight/deploy.rb'
3
+
4
+ # Add requires for other files you add to your project here, so
5
+ # you just need to require this one file in your bin file
@@ -0,0 +1,3 @@
1
+ module Clearsight
2
+ VERSION = '0.0.1'
3
+ end
metadata ADDED
@@ -0,0 +1,90 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: clearsight
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Jamon Holmgren
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-10-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: aruba
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: gli
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 2.8.1
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 2.8.1
55
+ description: Internal CLI tools for ClearSight Studio
56
+ email: jamon@clearsightstudio.com
57
+ executables:
58
+ - cs
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - bin/cs
63
+ - lib/clearsight/version.rb
64
+ - lib/clearsight.rb
65
+ homepage: http://www.clearsightstudio.com
66
+ licenses:
67
+ - MIT
68
+ metadata: {}
69
+ post_install_message:
70
+ rdoc_options: []
71
+ require_paths:
72
+ - lib
73
+ - lib
74
+ required_ruby_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ required_rubygems_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ requirements: []
85
+ rubyforge_project:
86
+ rubygems_version: 2.1.5
87
+ signing_key:
88
+ specification_version: 4
89
+ summary: Internal CLI tools for ClearSight Studio
90
+ test_files: []