souls 4.0.2 → 4.0.3

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
  SHA256:
3
- metadata.gz: 7d2cd85b864251dcf53d9d6e1194097a4dbdb97567d67e849a0c018bf3d4a1b3
4
- data.tar.gz: 77b19a0a8d7b768ed294285fd165f6c60baf3160ab0ca21183e2756722f4252a
3
+ metadata.gz: 43c6ba4ce3021d8bb89f79b5a282d4e32c5c4ad11abcf68b9df915c26bbdbf79
4
+ data.tar.gz: a287e9736b4bc74b578ec30d0b83775719381f16d9e2dd0ee0092512e1b616ff
5
5
  SHA512:
6
- metadata.gz: c9b8930fe34f0ddf0367e15fe4360c9dac64c9feb87479ee94732388a294baa9d4afada65876cd405e94726f50cbb8594a1656a31b5e335cfad23702313d8eee
7
- data.tar.gz: f9238ac61a3544de43c22a4273a1836593b99e9fc1d43db23a5f70c20eb31e0ba75276e0db404ccebbc28d8d0df9a0f78d271c6ac0d49d816a9bbe0ea3aeb651
6
+ metadata.gz: 8bca96265655419acf690def5660d4136e59e570a3636cc10727581cb76db135fa01abdbdb038f1c98fe5317627d825e4d772b65b6d3948888932df666250b97
7
+ data.tar.gz: 155b1ba4c8df448ec0a8dd8a1d63effaed56ca9ff823d61c37aad872ed4a3e0b51d981b035e51f3f5a83e4b667d5c3cd8ddb2c26444697407a747ddaca64017d
@@ -1,17 +1,15 @@
1
1
  module SOULs
2
2
  class Pubsub < Thor
3
3
  desc "create_topic", "Create Google Cloud Pubsub Topic"
4
- method_option :topic_name,
5
- default: "send-user-mailer",
6
- aliases: "--topic_name",
7
- desc: "Google Cloud Pubsub Topic Name"
8
- def create_topic
9
- system("gcloud pubsub topics create #{options[:topic_name]}")
4
+ def create_topic(topic_name)
5
+ project = SOULs.configuration.project_id
6
+ system("gcloud pubsub topics create #{topic_name} --project=#{project}")
10
7
  end
11
8
 
12
9
  desc "topic_list", "Show Google Cloud Topic List"
13
10
  def topic_list
14
- system("gcloud pubsub topics list")
11
+ project = SOULs.configuration.project_id
12
+ system("gcloud pubsub topics list --project=#{project}")
15
13
  end
16
14
  end
17
15
  end
data/lib/souls/cli.rb CHANGED
@@ -62,26 +62,22 @@ module SOULs
62
62
 
63
63
  desc "build", "Run Docker Build"
64
64
  def build
65
- app = SOULs.configuration.app
66
- system("docker build . -t #{app}")
65
+ system("bundle exec rake build")
67
66
  end
68
67
 
69
68
  desc "tag", "Run Docker Tag"
70
69
  def tag
71
- souls_config = SOULs.configuration
72
- app = souls_config.app
73
- gcr = souls_config.gcr_region
74
- project_id = souls_config.project_id
75
- system("docker tag #{app}:latest #{gcr}/#{project_id}/#{app}:latest")
70
+ system("bundle exec rake tag")
76
71
  end
77
72
 
78
73
  desc "push", "Run Docker Push"
79
74
  def push
80
- souls_config = SOULs.configuration
81
- app = souls_config.app
82
- gcr = souls_config.gcr_region
83
- project_id = souls_config.project_id
84
- system("docker push #{gcr}/#{project_id}/#{app}:latest")
75
+ system("bundle exec rake push")
76
+ end
77
+
78
+ desc "deploy", "Deploy to Google Cloud Run"
79
+ def deploy
80
+ system("bundle exec rake deploy")
85
81
  end
86
82
 
87
83
  def self.exit_on_failure?
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module SOULs
2
- VERSION = "4.0.2".freeze
2
+ VERSION = "4.0.3".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 4.0.2
1
+ 4.0.3
@@ -1 +1 @@
1
- 4.0.2
1
+ 4.0.3
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souls
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.2
4
+ version: 4.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
8
8
  - KishiTheMechanic
9
9
  - James Neve
10
- autorequire:
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2022-09-15 00:00:00.000000000 Z
13
+ date: 2022-09-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -292,7 +292,7 @@ licenses:
292
292
  - Apache-2.0
293
293
  metadata:
294
294
  rubygems_mfa_required: 'true'
295
- post_install_message:
295
+ post_install_message:
296
296
  rdoc_options: []
297
297
  require_paths:
298
298
  - lib
@@ -308,7 +308,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
308
308
  version: '0'
309
309
  requirements: []
310
310
  rubygems_version: 3.3.7
311
- signing_key:
311
+ signing_key:
312
312
  specification_version: 4
313
313
  summary: Ruby Serverless Framework 'SOULs' | Ruby サーバーレスフレームワーク SOULs. Powered by
314
314
  Ruby GraphQL, Active Record, RSpec, RuboCop, and Google Cloud.