ora-cli 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/bin/ora-install +15 -0
- data/bin/ora-uninstall +10 -0
- data/lib/ora/cli/path.rb +1 -1
- data/lib/ora/cli/print.rb +9 -4
- data/lib/ora/cli/version.rb +1 -1
- data/ora-cli.gemspec +1 -1
- metadata +6 -3
- /data/bin/{ora_selecta → ora-selecta} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27cee6ca32c233568f67bfdd067c9ac6a5c266c5
|
4
|
+
data.tar.gz: 5dfdd57300ccfb07ee65767ce5fa0953a35a9424
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bcc07fbe1a8a464c3f176525cba875eb806928cc57e95e35bdbbe527534d0346a411b8f0e549de1da41d0720169deb65cdd4c5c0b4e1297cdc33ab9dde864a2
|
7
|
+
data.tar.gz: 7d68b44c90df6a3428d8b2bf3d9b4b1b9439dddeebb105fc0e4f0f532d6e73c22ce611303be70bb65ebc0e70792476ea1706f89d989b435dc147cd1b593b5daf
|
data/README.md
CHANGED
data/bin/ora-install
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'ora/cli/bash'
|
4
|
+
require 'ora/cli/print'
|
5
|
+
|
6
|
+
ora_path = File.expand_path('../ora', __FILE__)
|
7
|
+
|
8
|
+
bash = Ora::Cli::Bash.new(nil)
|
9
|
+
bash.run "
|
10
|
+
rm -f /usr/local/bin/ora
|
11
|
+
ln -s #{ora_path} /usr/local/bin/ora
|
12
|
+
"
|
13
|
+
|
14
|
+
print = Ora::Cli::Print.new
|
15
|
+
print.green "\nInstall finished"
|
data/bin/ora-uninstall
ADDED
data/lib/ora/cli/path.rb
CHANGED
data/lib/ora/cli/print.rb
CHANGED
@@ -5,23 +5,28 @@ module Ora::Cli
|
|
5
5
|
end
|
6
6
|
|
7
7
|
def inline text
|
8
|
-
print text unless
|
8
|
+
print text unless ignore? text
|
9
9
|
text
|
10
10
|
end
|
11
11
|
|
12
12
|
def plain text
|
13
|
-
puts text unless
|
13
|
+
puts text unless ignore? text
|
14
14
|
text
|
15
15
|
end
|
16
16
|
|
17
17
|
def green text
|
18
|
-
puts "\e[32m#{text}\e[0m" unless
|
18
|
+
puts "\e[32m#{text}\e[0m" unless ignore? text
|
19
19
|
text
|
20
20
|
end
|
21
21
|
|
22
22
|
def red text
|
23
|
-
puts "\e[31m#{text}\e[0m" unless
|
23
|
+
puts "\e[31m#{text}\e[0m" unless ignore? text
|
24
24
|
text
|
25
25
|
end
|
26
|
+
|
27
|
+
private
|
28
|
+
def ignore? text
|
29
|
+
@silent || text.split.empty?
|
30
|
+
end
|
26
31
|
end
|
27
32
|
end
|
data/lib/ora/cli/version.rb
CHANGED
data/ora-cli.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
17
|
spec.bindir = "bin"
|
18
|
-
spec.executables = ["ora"]
|
18
|
+
spec.executables = ["ora-install", "ora-uninstall"]
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.12"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ora-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ducksan Cho
|
@@ -56,7 +56,8 @@ description: ORA CLI
|
|
56
56
|
email:
|
57
57
|
- ducktyper@gmail.com
|
58
58
|
executables:
|
59
|
-
- ora
|
59
|
+
- ora-install
|
60
|
+
- ora-uninstall
|
60
61
|
extensions: []
|
61
62
|
extra_rdoc_files: []
|
62
63
|
files:
|
@@ -67,7 +68,9 @@ files:
|
|
67
68
|
- Rakefile
|
68
69
|
- bin/console
|
69
70
|
- bin/ora
|
70
|
-
- bin/
|
71
|
+
- bin/ora-install
|
72
|
+
- bin/ora-selecta
|
73
|
+
- bin/ora-uninstall
|
71
74
|
- bin/setup
|
72
75
|
- lib/ora/cli.rb
|
73
76
|
- lib/ora/cli/bash.rb
|
File without changes
|