class Fastlane::Actions::CurrentDatetimeAction

Public Class Methods

authors() click to toggle source
# File lib/fastlane/plugin/current_datetime/actions/current_datetime_action.rb, line 18
def self.authors
  ["Melki"]
end
available_options() click to toggle source
# File lib/fastlane/plugin/current_datetime/actions/current_datetime_action.rb, line 31
def self.available_options
  [
    # FastlaneCore::ConfigItem.new(key: :your_option,
    #                         env_name: "CURRENT_DATETIME_YOUR_OPTION",
    #                      description: "A description of your option",
    #                         optional: false,
    #                             type: String)
  ]
end
description() click to toggle source
# 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() click to toggle source
# 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) click to toggle source
# File lib/fastlane/plugin/current_datetime/actions/current_datetime_action.rb, line 41
def self.is_supported?(platform)
  true
end
return_value() click to toggle source
# File lib/fastlane/plugin/current_datetime/actions/current_datetime_action.rb, line 22
def self.return_value
  "current date and time"
end
run(params) click to toggle source
# 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