shippy 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shippy/cli/app.rb +11 -0
- data/lib/shippy/cli/main.rb +11 -0
- data/lib/shippy/compose.rb +0 -4
- data/lib/shippy/service.rb +0 -6
- data/lib/shippy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16d22f393393da56cb043a62389601922ba62bc3dc7ce8b0f6d11a7b3880f991
|
4
|
+
data.tar.gz: daae530d2031f02777ebee3ee60cc2d2988415498496e6ac37eda94c82b6ec99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc45722dcf032d0b8d0f0023da31a1d03c97af039851cbd67c81ac1a907587d0f964a6b96c49af1aa05cbea96bb4264c1df6859bf49ad748711394fd9eb2ff93
|
7
|
+
data.tar.gz: 5e1efdbee18892ddcee10e52ad5078c60ed5aad448f98a536f8b54130c4ccae3081176a5262fbec06ab27abea5cb3cd400447fff780cd5c2c5fc1ac012e78b78
|
data/lib/shippy/cli/app.rb
CHANGED
@@ -41,6 +41,17 @@ class Shippy::Cli::App < Shippy::Cli::Base
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
+
desc "restart", "Restart application"
|
45
|
+
option :service, aliases: "-S", type: :string, desc: "Restart only a SERVICE"
|
46
|
+
def restart
|
47
|
+
say "Restarting #{app_name} on #{SHIPPY.host}...", :magenta
|
48
|
+
restart_options = options[:service] ? ["--", options[:service]] : []
|
49
|
+
|
50
|
+
within_app do
|
51
|
+
execute :docker_compose, "restart", *restart_options
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
44
55
|
desc "stop", "Stop application"
|
45
56
|
def stop
|
46
57
|
say "Stopping #{app_name} on #{SHIPPY.host}...", :magenta
|
data/lib/shippy/cli/main.rb
CHANGED
@@ -65,6 +65,17 @@ class Shippy::Cli::Main < Shippy::Cli::Base
|
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
68
|
+
desc "refresh", "Pull newer images and restart services"
|
69
|
+
def refresh
|
70
|
+
print_runtime do
|
71
|
+
Dir.glob("*", base: "apps").each do |name|
|
72
|
+
Shippy::Cli::App.send :dispatch, :refresh, [name], {}, {}
|
73
|
+
Shippy::Cli::App.send :dispatch, :start, [name], {}, {}
|
74
|
+
Shippy::Cli::App.send :dispatch, :status, [name], {}, {}
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
68
79
|
desc "app", "Manage application"
|
69
80
|
subcommand "app", Shippy::Cli::App
|
70
81
|
|
data/lib/shippy/compose.rb
CHANGED
data/lib/shippy/service.rb
CHANGED
data/lib/shippy/version.rb
CHANGED