Class: Fastlane::Actions::CurrentDatetimeAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::CurrentDatetimeAction
- Defined in:
- lib/fastlane/plugin/current_datetime/actions/current_datetime_action.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .return_value ⇒ Object
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
18 19 20 |
# File 'lib/fastlane/plugin/current_datetime/actions/current_datetime_action.rb', line 18 def self. ["Melki"] end |
.available_options ⇒ Object
31 32 33 34 35 36 37 38 39 |
# File 'lib/fastlane/plugin/current_datetime/actions/current_datetime_action.rb', line 31 def self. [ # FastlaneCore::ConfigItem.new(key: :your_option, # env_name: "CURRENT_DATETIME_YOUR_OPTION", # description: "A description of your option", # optional: false, # type: String) ] end |
.description ⇒ Object
14 15 16 |
# File 'lib/fastlane/plugin/current_datetime/actions/current_datetime_action.rb', line 14 def self.description "To get current date and time as string" end |
.details ⇒ Object
26 27 28 29 |
# File 'lib/fastlane/plugin/current_datetime/actions/current_datetime_action.rb', line 26 def self.details # Optional: "This plugin has created for naming folder names from current date and time based." end |
.is_supported?(platform) ⇒ Boolean
41 42 43 |
# File 'lib/fastlane/plugin/current_datetime/actions/current_datetime_action.rb', line 41 def self.is_supported?(platform) true end |
.return_value ⇒ Object
22 23 24 |
# File 'lib/fastlane/plugin/current_datetime/actions/current_datetime_action.rb', line 22 def self.return_value "current date and time" end |
.run(params) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/fastlane/plugin/current_datetime/actions/current_datetime_action.rb', line 7 def self.run(params) time = Time.new # puts "Current Time : " + time.month # puts time.strftime("%d%b%y-%H.%M") return time.strftime("%d%b%y-%H.%M") end |