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 +4 -4
- data/bin/percheron +2 -2
- data/lib/percheron/{cli/abstract_command.rb → commands/abstract.rb} +2 -2
- data/lib/percheron/{cli/console_command.rb → commands/console.rb} +2 -2
- data/lib/percheron/{cli/create_command.rb → commands/create.rb} +2 -2
- data/lib/percheron/{cli/list_command.rb → commands/list.rb} +2 -2
- data/lib/percheron/commands/main.rb +14 -0
- data/lib/percheron/{cli/purge_command.rb → commands/purge.rb} +2 -2
- data/lib/percheron/{cli/recreate_command.rb → commands/recreate.rb} +2 -2
- data/lib/percheron/{cli/restart_command.rb → commands/restart.rb} +2 -2
- data/lib/percheron/{cli/start_command.rb → commands/start.rb} +2 -2
- data/lib/percheron/{cli/stop_command.rb → commands/stop.rb} +2 -2
- data/lib/percheron/commands.rb +17 -0
- data/lib/percheron/version.rb +1 -1
- metadata +12 -12
- data/lib/percheron/cli/main_command.rb +0 -14
- data/lib/percheron/cli.rb +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e3ddd051314e0499f89ac94434e3f8db4853d38
|
4
|
+
data.tar.gz: 2920032bebd374d9fdf48f1147a98cadd83a8c9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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::
|
30
|
+
Percheron::Commands::Main.run
|
31
31
|
rescue => e
|
32
32
|
puts Percheron::OhDear.new(e).generate
|
33
33
|
end
|
@@ -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
|
@@ -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
|
data/lib/percheron/version.rb
CHANGED
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.
|
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/
|
241
|
-
- lib/percheron/
|
242
|
-
- lib/percheron/
|
243
|
-
- lib/percheron/
|
244
|
-
- lib/percheron/
|
245
|
-
- lib/percheron/
|
246
|
-
- lib/percheron/
|
247
|
-
- lib/percheron/
|
248
|
-
- lib/percheron/
|
249
|
-
- lib/percheron/
|
250
|
-
- lib/percheron/
|
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
|