souls 1.16.0 → 1.16.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f15f29d4efb8c41654774dac322c065ba387b326b9d8884b35dcebfe4e76f20
4
- data.tar.gz: 4dff20a144f48f194b4d2d39cdc8d22e0e4471b6b493d30adc84029a8006fe59
3
+ metadata.gz: ee6967aca4ad68485e8949a07d18d9cb27207c94c37048ad48e872327ee3826d
4
+ data.tar.gz: 557dfda9e78e399a7d960d935510372d82d7abb5e475f63cbcfe379a0bf17109
5
5
  SHA512:
6
- metadata.gz: 48f2436a0515b1ba00183ebda98b5bd3590c0bc58a966bf2a29f31d583b31e886a022d780ffb244516bbd22f8c15f815da95e262dd2f729ee68ce6907eecc152
7
- data.tar.gz: 4edcb626880e6e51da8333a01613f7d31e6e64ef1fcdb5a9ead2882255e426f45531f33f74656f76c95ab2007ad252bfeeabee9567c471fec02141ea82db5582
6
+ metadata.gz: fe9c7d8f0958df1b3583812bc6dac837458f7289002d9f91edf36477239eb12b8981cf047413bcf71203e8fa53a36a833033c543e1fd3b416bb5b69ac28f2bfc
7
+ data.tar.gz: dc37274075a447eb120d361890c0b7884e5698dd3497abc261cf455641adbb66c7e46bb0c1cb780ce871fd486deb8a8f1f35b49d4d04ad076e0d94a330ee1405
@@ -1,6 +1,6 @@
1
1
  module Template
2
2
  module Ruby
3
- def self.index(file_name)
3
+ def self.app(file_name)
4
4
  <<~APP
5
5
  require "functions_framework"
6
6
  require "sinatra/base"
@@ -3,6 +3,7 @@ module Souls
3
3
  desc "deploy", "Deploy Cloud Functions"
4
4
  def deploy
5
5
  require(Souls.get_mother_path.to_s + "/config/souls")
6
+ project_id = Souls.configuration.project_id
6
7
  current_dir = FileUtils.pwd.split("/").last
7
8
  unless current_dir.match?(/^cf_/)
8
9
  Souls::Painter.error("You are at wrong dir!\nPlease go to `apps/functions` dir!")
@@ -25,6 +26,17 @@ module Souls
25
26
  system("gcloud functions describe souls_functions --project=#{project_id}")
26
27
  end
27
28
 
29
+ desc "delete", "Delete SOULs Functions"
30
+ def delete(name)
31
+ require(Souls.get_mother_path.to_s + "/config/souls")
32
+ project_id = Souls.configuration.project_id
33
+ system("gcloud functions delete #{name} --project=#{project_id}")
34
+ Dir.chdir(Souls.get_mother_path.to_s) do
35
+ FileUtils.rm_rf("apps/#{name}")
36
+ end
37
+ Souls::Painter.success("Deleted #{name} functions!")
38
+ end
39
+
28
40
  desc "url", "Get SOULs Functions URL"
29
41
  def url
30
42
  require(Souls.get_mother_path.to_s + "/config/souls")
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.16.0".freeze
2
+ VERSION = "1.16.4".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.16.0
1
+ 1.16.4
@@ -1 +1 @@
1
- 1.16.0
1
+ 1.16.4
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souls
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.0
4
+ version: 1.16.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2022-01-03 00:00:00.000000000 Z
13
+ date: 2022-01-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -183,8 +183,8 @@ files:
183
183
  - lib/souls/cli/create/templates/nodejs/package.rb
184
184
  - lib/souls/cli/create/templates/python/main.rb
185
185
  - lib/souls/cli/create/templates/python/requirements.rb
186
+ - lib/souls/cli/create/templates/ruby/app.rb
186
187
  - lib/souls/cli/create/templates/ruby/gemfile.rb
187
- - lib/souls/cli/create/templates/ruby/index.rb
188
188
  - lib/souls/cli/db/create_migration.rb
189
189
  - lib/souls/cli/db/create_migration_rbs.rb
190
190
  - lib/souls/cli/db/index.rb