orphic 0.1.3 → 0.1.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
  SHA256:
3
- metadata.gz: b159c95f4c359b882a1ed9a09df67222c392019bc866a2e0a216929a37fd82b6
4
- data.tar.gz: 9141be5a892efb82f756ada709b7b250f30318c600c4580f653f486af8b867ff
3
+ metadata.gz: '08946a6b5beafae670e8b4dfa793ba5fc70e3da960b49b6e49506cc065b8f627'
4
+ data.tar.gz: 3359fc8d3162020a17388e6ccdec06b905358aa1a787b9b6ab5d46f063023266
5
5
  SHA512:
6
- metadata.gz: 766bcc7435f4227994ef12f1b8814640bec7a098dc9bae8011e7e0057914f9cdd91b7c098a9a1c25b3809dece63c2c062123071a76223a1ff3dc4ff8953619d2
7
- data.tar.gz: 2a6f9492e8e25b832843733318e571741adf985cc6dd9011f413606047127d21b5fc0759c7fd742dd9b03273b93563d6dfd1b05dc06e46369c9d9ea3b60da67a
6
+ metadata.gz: 84f4edb17fca1b59020e7ccb5bfa67d48fbabc90bf3e4ed24a18e8947faee6dacbac461982ecd95c428300ceb8a113e78bd29249741ea9c4c5c8a2ff5b4cb0ce
7
+ data.tar.gz: 56d46c1ce1a7b48707269b400b55dd83092ad72eaff304467760b946dea7efba01a1c8643406514713bc9666e973db3a9ecbde5ca73541204cd002438a4893b4
@@ -3,7 +3,7 @@
3
3
  require "bundler/setup"
4
4
  require "orphic"
5
5
 
6
- Orphic::HammerOfTheGods.start( ARGV )
6
+ Orphic::Mjolnir.start( ARGV )
7
7
 
8
8
  # You can add fixtures and/or initialization code here to make experimenting
9
9
  # with your gem easier. You can also use a different console, if you like.
@@ -3,4 +3,9 @@ require "orphic/cli"
3
3
 
4
4
  module Orphic
5
5
  # TODO
6
+ CLI::UI::StdoutRouter.enable
7
+ CLI::UI::Frame.open('Orphic Developer Experience') do
8
+ CLI::UI::Frame.open('Ruby CLI') { puts "The Orphic Ruby CLI utilizes the Thor gem for self-documenting commands and cli-ui gem for UI." }
9
+ puts "Great minds never think alike."
10
+ end
6
11
  end
@@ -1,6 +1,7 @@
1
1
  require 'thor'
2
2
  require 'orphic/cli/node'
3
3
  require 'orphic/cli/district'
4
+ require 'cli/ui'
4
5
 
5
6
  module Orphic
6
7
  class Mjolnir < Thor
@@ -14,7 +15,9 @@ module Orphic
14
15
  def hello( name )
15
16
  greeting = "Hello, #{name}"
16
17
  greeting.upcase! if options[:upcase]
17
- puts greeting
18
+ CLI::UI::Frame.open( greeting ) do
19
+ puts greeting + " from the frame"
20
+ end
18
21
  end
19
22
  desc "node COMMANDS", "Node.JS Commands"
20
23
  subcommand "node", Orphic::OrphicCli::Node
@@ -48,7 +48,9 @@ module Orphic
48
48
  baseLoyal = "Loyal District info" if options[:loyal]
49
49
  baseEnthuse = "Enthuse District info" if options[:enthuse]
50
50
  baseClarity = "Clarity District info" if options[:clarity]
51
- puts "#{viewDistrict}"
51
+ CLI::UI::Frame.open( "Map :: District : " + viewDistrict ) do
52
+ puts "#{viewDistrict}"
53
+ end
52
54
  end
53
55
  desc "createDistrict", "Create a new district with <createDistrict>"
54
56
  long_desc <<-CREATE_DISTRICT
@@ -58,7 +60,9 @@ module Orphic
58
60
  CREATE_DISTRICT
59
61
  def createDistrict ( createDistrict )
60
62
  # implement createDistrict
61
- puts "#{createDistrict}"
63
+ CLI::UI::Frame.open( "Map :: District : Create " + createDistrict ) do
64
+ puts "#{createDistrict}"
65
+ end
62
66
  end
63
67
  end
64
68
  end
@@ -4,7 +4,20 @@ module Orphic
4
4
  desc "help COMMAND", "Get help for the Orphic Node.JS CLI"
5
5
  option :tags
6
6
  def help ( command )
7
- puts "Looks like you are looking for #{command} with tags #{options[:tags]}"
7
+ CLI::UI::Frame.open( "Node :: help : " + command ) do
8
+ puts "Looks like you are looking for #{command} with tags #{options[:tags]}"
9
+ end
10
+ end
11
+ desc "deploy SITE", "Deploy a Node.JS instance"
12
+ option :baseDistrict
13
+ def deploy ( site )
14
+ CLI::UI::Frame.open( "Node :: deploy : " + site ) do
15
+ if options[:baseDistrict]
16
+ puts "Starting deploy #{site} with #{options[:baseDistrict]}"
17
+ else
18
+ puts "Starting deploy #{site} with no base district."
19
+ end
20
+ end
8
21
  end
9
22
  end
10
23
  end
@@ -1,3 +1,3 @@
1
1
  module Orphic
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -29,6 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ["lib"]
31
31
  spec.add_dependency "thor", "~> 0.20"
32
+ spec.add_dependency "cli-ui", "~> 1.4"
32
33
  spec.add_development_dependency "rspec"
33
34
  spec.add_development_dependency "rspec-nc"
34
35
  spec.add_development_dependency "guard"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orphic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle OBrien
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.20'
27
+ - !ruby/object:Gem::Dependency
28
+ name: cli-ui
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.4'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.4'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rspec
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -170,7 +184,7 @@ metadata:
170
184
  bug_tracker_uri: https://github.com/orphic-inc/ruby-orphic-cli/issues
171
185
  changlog_uri: https://github.com/orphic-inc/ruby-orphic-cli/blob/main/CHANGELOG.md
172
186
  documentation_uri: https://github.com/orphic-inc/ruby-orphic-cli/blob/main/README.md
173
- source_code_uri: https://github.com/orphic-inc/ruby-orphic-cli/tree/v0.1.3
187
+ source_code_uri: https://github.com/orphic-inc/ruby-orphic-cli/tree/v0.1.4
174
188
  wiki_uri: https://github.com/orphic-inc/ruby-orphic-cli/wiki
175
189
  post_install_message:
176
190
  rdoc_options: []