fastlane-plugin-testbm 0.1.8 → 0.1.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28701adcc3be5cf4d3346f9d339599fc47eb7b525658efb9d5a3cd25056ced7b
|
4
|
+
data.tar.gz: 87269fc3ff27be4156a9712ebe82f0b138308645c838bae3d14023a8c489a93c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38e384494416c52b26d13498b45b5cc8999240d51c97447a97b7ecb3ce6c304be55e5219c9102303ad3fd8201b5bb3f771e6af2abe8323ccde960078856244ae
|
7
|
+
data.tar.gz: e2977228122429e186caf7b726be6e3aad53cf5a87b670e24d68e7edfc9c6f8b4535abd61d4ce78e7c17740c117e0a9985be660e4a2ee14fa6e56c2c067c76a9
|
@@ -1,19 +1,19 @@
|
|
1
1
|
require 'fastlane/action'
|
2
|
+
require_relative '../helper/testbm_helper'
|
2
3
|
|
3
4
|
module Fastlane
|
4
5
|
module Actions
|
5
6
|
class ChatAction < Action
|
6
7
|
def self.run(params)
|
7
8
|
slack_icon = params[:slack_icon]
|
8
|
-
|
9
|
-
slack_url = params[:slack_url]
|
9
|
+
message_text = params[:message_text]
|
10
10
|
other_action.slack(
|
11
|
-
message:
|
11
|
+
message: message_text,
|
12
12
|
success: true,
|
13
|
-
slack_url: slack_url,
|
14
13
|
icon_url: slack_icon,
|
15
14
|
username: "Bemobile Fastlane Plugin - #{ENV["PRIVATE_APP_NAME"]}"
|
16
|
-
)
|
15
|
+
)
|
16
|
+
Helper::TestbmHelper.slack_func_notify("Message from helper.")
|
17
17
|
UI.message("Message sent to Slack!")
|
18
18
|
end
|
19
19
|
|
@@ -37,7 +37,7 @@ module Fastlane
|
|
37
37
|
def self.available_options
|
38
38
|
[
|
39
39
|
FastlaneCore::ConfigItem.new(key: :chat_message,
|
40
|
-
env_name: "
|
40
|
+
env_name: "MESSAGE_TEXT",
|
41
41
|
description: "The chat message to be sent to Slack",
|
42
42
|
optional: false,
|
43
43
|
type: String),
|
@@ -45,12 +45,7 @@ module Fastlane
|
|
45
45
|
env_name: "SLACK_ICON",
|
46
46
|
description: "The icon to be posted to Slack",
|
47
47
|
optional: false,
|
48
|
-
type: String)
|
49
|
-
FastlaneCore::ConfigItem.new(key: :slack_url,
|
50
|
-
env_name: "SLACK_URL",
|
51
|
-
description: "The webhook's url to where we will post in Slack",
|
52
|
-
optional: false,
|
53
|
-
type: String),
|
48
|
+
type: String)
|
54
49
|
]
|
55
50
|
end
|
56
51
|
|
@@ -11,6 +11,17 @@ module Fastlane
|
|
11
11
|
def self.show_message
|
12
12
|
UI.message("Hello from the testbm plugin helper!")
|
13
13
|
end
|
14
|
+
|
15
|
+
#Notify via slack channel a generic message with the default payloads
|
16
|
+
def slack_func_notify(message_text:)
|
17
|
+
other_action.slack(
|
18
|
+
message: message_text,
|
19
|
+
success: true,
|
20
|
+
default_payloads: [:lane, :git_branch, :git_author],
|
21
|
+
icon_url: ENV["SLACK_ICON"],
|
22
|
+
username: "fastlane - #{ENV["PRIVATE_APP_NAME"]}")
|
23
|
+
end
|
24
|
+
|
14
25
|
end
|
15
26
|
end
|
16
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-testbm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bemobile
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|