percheron 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57bb2c76f384e9d0ac932c72d1c607bac65f9bd8
4
- data.tar.gz: 4cfa40df1e9fefad4238f6960e2d4570e59a5502
3
+ metadata.gz: 0e3ddd051314e0499f89ac94434e3f8db4853d38
4
+ data.tar.gz: 2920032bebd374d9fdf48f1147a98cadd83a8c9b
5
5
  SHA512:
6
- metadata.gz: 4d16f64f3aa1fb492bd825e92a9d622d812fe61da5d8d957a2dc8002a9d655d556f9df61efab2aa83a93a92bc3725353037b820e2d6f1991d5480785bae93c2c
7
- data.tar.gz: 03d4ac7067cd65c0599850faa66af3e8a6f22ec7a7ef52f53bff795f8c0517a15a2ec79e4fce94338af9698800c6800c867b4bf2c6aaf657200089ed75781e18
6
+ metadata.gz: 8e35dd0de12e652c68904d9759c274c4e603929dbd9fd97419ad9d6c8a6527d41c5e1e34985879958c5fb7d8904ccbb1f5ffe2c2b3f7d53a4598b67018676216
7
+ data.tar.gz: 870da0edb41d07986ee64aef65a7dac5cfd71536a411664c37aadbed476a408d6b3af9b9261397159b487a53102a2c8697e0179104746ba5d32a8c47e8f08268
data/bin/percheron CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  require 'logger'
7
7
  require 'percheron'
8
- require 'percheron/cli'
8
+ require 'percheron/commands'
9
9
 
10
10
  $metastore = Metastore::Cabinet.new(File.join(ENV['HOME'], '.percheron', 'metastore.yaml'))
11
11
  $logger = Logger.new(STDOUT)
@@ -27,7 +27,7 @@ end
27
27
  $logger.level = logger_level
28
28
 
29
29
  begin
30
- Percheron::CLI::MainCommand.run
30
+ Percheron::Commands::Main.run
31
31
  rescue => e
32
32
  puts Percheron::OhDear.new(e).generate
33
33
  end
@@ -1,6 +1,6 @@
1
1
  module Percheron
2
- module CLI
3
- class AbstractCommand < Clamp::Command
2
+ module Commands
3
+ class Abstract < Clamp::Command
4
4
 
5
5
  DEFAULT_CONFIG_FILE = '.percheron.yml'
6
6
 
@@ -1,6 +1,6 @@
1
1
  module Percheron
2
- module CLI
3
- class ConsoleCommand < AbstractCommand
2
+ module Commands
3
+ class Console < Abstract
4
4
 
5
5
  def execute
6
6
  pry
@@ -1,6 +1,6 @@
1
1
  module Percheron
2
- module CLI
3
- class CreateCommand < AbstractCommand
2
+ module Commands
3
+ class Create < Abstract
4
4
 
5
5
  default_parameters!
6
6
 
@@ -1,6 +1,6 @@
1
1
  module Percheron
2
- module CLI
3
- class ListCommand < AbstractCommand
2
+ module Commands
3
+ class List < Abstract
4
4
 
5
5
  parameter('STACK_NAME', 'stack name', required: false)
6
6
 
@@ -0,0 +1,14 @@
1
+ module Percheron
2
+ module Commands
3
+ class Main < Abstract
4
+ subcommand 'list', "List stacks and it's containers", List
5
+ subcommand 'console', 'Start a pry console session', Console
6
+ subcommand 'start', 'Start a stack', Start
7
+ subcommand 'stop', 'Stop a stack', Stop
8
+ subcommand 'restart', 'Restart a stack', Restart
9
+ subcommand 'create', 'Create a stack', Create
10
+ subcommand 'recreate', 'Recreate a stack', Recreate
11
+ subcommand 'purge', 'Purge a stack', Purge
12
+ end
13
+ end
14
+ end
@@ -1,6 +1,6 @@
1
1
  module Percheron
2
- module CLI
3
- class PurgeCommand < AbstractCommand
2
+ module Commands
3
+ class Purge < Abstract
4
4
 
5
5
  parameter('STACK_NAME', 'stack name', required: false)
6
6
 
@@ -1,6 +1,6 @@
1
1
  module Percheron
2
- module CLI
3
- class RecreateCommand < AbstractCommand
2
+ module Commands
3
+ class Recreate < Abstract
4
4
 
5
5
  default_parameters!
6
6
 
@@ -1,6 +1,6 @@
1
1
  module Percheron
2
- module CLI
3
- class RestartCommand < AbstractCommand
2
+ module Commands
3
+ class Restart < Abstract
4
4
 
5
5
  default_parameters!
6
6
 
@@ -1,6 +1,6 @@
1
1
  module Percheron
2
- module CLI
3
- class StartCommand < AbstractCommand
2
+ module Commands
3
+ class Start < Abstract
4
4
 
5
5
  default_parameters!
6
6
 
@@ -1,6 +1,6 @@
1
1
  module Percheron
2
- module CLI
3
- class StopCommand < AbstractCommand
2
+ module Commands
3
+ class Stop < Abstract
4
4
 
5
5
  default_parameters!
6
6
 
@@ -0,0 +1,17 @@
1
+ require 'clamp'
2
+
3
+ require 'percheron/commands/abstract'
4
+ require 'percheron/commands/list'
5
+ require 'percheron/commands/restart'
6
+ require 'percheron/commands/start'
7
+ require 'percheron/commands/stop'
8
+ require 'percheron/commands/purge'
9
+ require 'percheron/commands/console'
10
+ require 'percheron/commands/create'
11
+ require 'percheron/commands/recreate'
12
+ require 'percheron/commands/main'
13
+
14
+ module Percheron
15
+ module Commands
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module Percheron
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: percheron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ash McKenzie
@@ -237,17 +237,17 @@ files:
237
237
  - lib/percheron/actions/restart.rb
238
238
  - lib/percheron/actions/start.rb
239
239
  - lib/percheron/actions/stop.rb
240
- - lib/percheron/cli.rb
241
- - lib/percheron/cli/abstract_command.rb
242
- - lib/percheron/cli/console_command.rb
243
- - lib/percheron/cli/create_command.rb
244
- - lib/percheron/cli/list_command.rb
245
- - lib/percheron/cli/main_command.rb
246
- - lib/percheron/cli/purge_command.rb
247
- - lib/percheron/cli/recreate_command.rb
248
- - lib/percheron/cli/restart_command.rb
249
- - lib/percheron/cli/start_command.rb
250
- - lib/percheron/cli/stop_command.rb
240
+ - lib/percheron/commands.rb
241
+ - lib/percheron/commands/abstract.rb
242
+ - lib/percheron/commands/console.rb
243
+ - lib/percheron/commands/create.rb
244
+ - lib/percheron/commands/list.rb
245
+ - lib/percheron/commands/main.rb
246
+ - lib/percheron/commands/purge.rb
247
+ - lib/percheron/commands/recreate.rb
248
+ - lib/percheron/commands/restart.rb
249
+ - lib/percheron/commands/start.rb
250
+ - lib/percheron/commands/stop.rb
251
251
  - lib/percheron/config.rb
252
252
  - lib/percheron/config_delegator.rb
253
253
  - lib/percheron/container.rb
@@ -1,14 +0,0 @@
1
- module Percheron
2
- module CLI
3
- class MainCommand < AbstractCommand
4
- subcommand 'list', "List stacks and it's containers", ListCommand
5
- subcommand 'console', 'Start a pry console session', ConsoleCommand
6
- subcommand 'start', 'Start a stack', StartCommand
7
- subcommand 'stop', 'Stop a stack', StopCommand
8
- subcommand 'restart', 'Restart a stack', RestartCommand
9
- subcommand 'create', 'Create a stack', CreateCommand
10
- subcommand 'recreate', 'Recreate a stack', RecreateCommand
11
- subcommand 'purge', 'Purge a stack', PurgeCommand
12
- end
13
- end
14
- end
data/lib/percheron/cli.rb DELETED
@@ -1,17 +0,0 @@
1
- require 'clamp'
2
-
3
- require 'percheron/cli/abstract_command'
4
- require 'percheron/cli/list_command'
5
- require 'percheron/cli/restart_command'
6
- require 'percheron/cli/start_command'
7
- require 'percheron/cli/stop_command'
8
- require 'percheron/cli/purge_command'
9
- require 'percheron/cli/console_command'
10
- require 'percheron/cli/create_command'
11
- require 'percheron/cli/recreate_command'
12
- require 'percheron/cli/main_command'
13
-
14
- module Percheron
15
- module CLI
16
- end
17
- end