putpaws 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/putpaws/application_config.rb +1 -1
- data/lib/putpaws/cloud_watch/tasks/log_task.rake +2 -2
- data/lib/putpaws/ecs/tasks/ecs_task.rake +2 -2
- data/lib/putpaws/prompt.rb +9 -0
- data/lib/putpaws/scheduler/tasks/scheduler_task.rake +2 -2
- data/lib/putpaws/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc81dde13186441af99e515508a418fddfda5abac1636ef734ca05b5796df3a7
|
4
|
+
data.tar.gz: fd003a6a360a6859026f8003471d5755645dcca68e359f6d16de91f16eb2e483
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d119637b098227c69d9c96eb258e9c0a04cd5a1a67840a5006a76014c7deca0ef3c6e750b9e2aa2791b5703eebcbdc4475548dafdcf97f145eed9ab9872d4ec
|
7
|
+
data.tar.gz: e7e6bf5cb5a343a23285dfed9c849267f421170406a9e437a3aee614455f756ebb15ffcf50447e9dd88d7f6f95f7aab4fcf710ffeab6fb788bc4b0af26915dcb
|
@@ -57,6 +57,6 @@ class Putpaws::ApplicationConfig < Struct.new(
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def schedules
|
60
|
-
@schedules ||= (self[:schedules] || []).map{|x| Putpaws::ScheduleConfig.find(x)}
|
60
|
+
@schedules ||= (self[:schedules] || []).map{|x| Putpaws::ScheduleConfig.find(x)}.compact
|
61
61
|
end
|
62
62
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require "
|
1
|
+
require "putpaws/prompt"
|
2
2
|
require "putpaws/cloud_watch/log_command"
|
3
3
|
require "putpaws/cloud_watch/default_log_formatter"
|
4
4
|
|
@@ -6,7 +6,7 @@ namespace :log do
|
|
6
6
|
desc "Set Log Group."
|
7
7
|
task :set_log_group do
|
8
8
|
app = fetch(:app)
|
9
|
-
prompt =
|
9
|
+
prompt = Putpaws::Prompt.safe
|
10
10
|
log_type = if app.build_log_group_prefix
|
11
11
|
prompt.select("Choose log type", ["default", "build"])
|
12
12
|
else
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require "
|
1
|
+
require "putpaws/prompt"
|
2
2
|
require "putpaws/ecs/task_command"
|
3
3
|
|
4
4
|
namespace :ecs do
|
@@ -10,7 +10,7 @@ namespace :ecs do
|
|
10
10
|
task_def = t.task_definition_arn.split('/').last
|
11
11
|
["#{task_id} (#{task_def}) #{t.last_status}", t]
|
12
12
|
}.to_h
|
13
|
-
prompt =
|
13
|
+
prompt = Putpaws::Prompt.safe
|
14
14
|
selected = prompt.select("Choose a task you're going to operate", ecs_tasks.keys)
|
15
15
|
ecs_task = ecs_tasks[selected]
|
16
16
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require "
|
1
|
+
require "putpaws/prompt"
|
2
2
|
require "putpaws/schedule_config"
|
3
3
|
require "putpaws/scheduler/schedule_command"
|
4
4
|
|
@@ -12,7 +12,7 @@ namespace :scheduler do
|
|
12
12
|
raise "Please set `schedules` at .putpaws/schedule.json\nFollowing schedules available:\n#{schedule_options.to_json}\n"
|
13
13
|
end
|
14
14
|
|
15
|
-
prompt =
|
15
|
+
prompt = Putpaws::Prompt.safe
|
16
16
|
selected = prompt.select("Choose a task you're going to operate", schedules.map(&:name))
|
17
17
|
schedule_config = schedules.find{|x| x.name == selected}
|
18
18
|
|
data/lib/putpaws/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: putpaws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- metheglin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- lib/putpaws/hello.rb
|
106
106
|
- lib/putpaws/infra_network_config.rb
|
107
107
|
- lib/putpaws/infra_target_config.rb
|
108
|
+
- lib/putpaws/prompt.rb
|
108
109
|
- lib/putpaws/schedule_config.rb
|
109
110
|
- lib/putpaws/scheduler/schedule_command.rb
|
110
111
|
- lib/putpaws/scheduler/scheduler_task.rb
|