Class: Fastlane::Actions::TweetAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::TweetAction
- Defined in:
- lib/fastlane/plugin/twitter/actions/tweet_action.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
13 14 15 |
# File 'lib/fastlane/plugin/twitter/actions/tweet_action.rb', line 13 def self. ["rb_de0"] end |
.available_options ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/fastlane/plugin/twitter/actions/tweet_action.rb', line 17 def self. [ FastlaneCore::ConfigItem.new(key: :message, env_name: "TWEET_MESSAGE", description: "A message that should be tweeted to twitter", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :consumer_key, env_name: "TWITTER_CONSUMER_KEY", description: "Twitter Consumer Key", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :consumer_secret, env_name: "TWITTER_CONSUMER_SECRET", description: "Twitter Consumer Secret", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :access_token, env_name: "TWITTER_ACCESS_TOKEN", description: "Twitter Access Token", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :access_token_secret, env_name: "TWITTER_ACCESS_TOKEN_SECRET", description: "Twitter Access Token Secret", optional: false, type: String) ] end |
.description ⇒ Object
9 10 11 |
# File 'lib/fastlane/plugin/twitter/actions/tweet_action.rb', line 9 def self.description "Tweet a message specified in the parameter" end |
.is_supported?(platform) ⇒ Boolean
47 48 49 |
# File 'lib/fastlane/plugin/twitter/actions/tweet_action.rb', line 47 def self.is_supported?(platform) true end |
.run(params) ⇒ Object
4 5 6 7 |
# File 'lib/fastlane/plugin/twitter/actions/tweet_action.rb', line 4 def self.run(params) client = TwitterWrapper::Client.new(params) client.tweet(params[:message]) end |