Class: Fastlane::Helper::AliossHelper
- Inherits:
-
Object
- Object
- Fastlane::Helper::AliossHelper
- Defined in:
- lib/fastlane/plugin/alioss/helper/alioss_helper.rb
Class Method Summary collapse
-
.gem_path(gem_name) ⇒ Object
Taken from github.com/fastlane/fastlane/blob/f0dd4d0f4ecc74d9f7f62e0efc33091d975f2043/fastlane_core/lib/fastlane_core/helper.rb#L248-L259 Unsure best other way to do this so using this logic for now since its deprecated in fastlane proper.
- .index_html_template_path ⇒ Object
-
.show_message ⇒ Object
class methods that you define here become available in your action as ‘Helper::AliossHelper.your_method`.
Class Method Details
.gem_path(gem_name) ⇒ Object
Taken from github.com/fastlane/fastlane/blob/f0dd4d0f4ecc74d9f7f62e0efc33091d975f2043/fastlane_core/lib/fastlane_core/helper.rb#L248-L259 Unsure best other way to do this so using this logic for now since its deprecated in fastlane proper
24 25 26 27 28 29 30 |
# File 'lib/fastlane/plugin/alioss/helper/alioss_helper.rb', line 24 def self.gem_path(gem_name) if !Helper.is_test? and Gem::Specification.find_all_by_name(gem_name).any? return Gem::Specification.find_by_name(gem_name).gem_dir else return './' end end |
.index_html_template_path ⇒ Object
16 17 18 |
# File 'lib/fastlane/plugin/alioss/helper/alioss_helper.rb', line 16 def self.index_html_template_path return "#{gem_path('fastlane-plugin-alioss')}/lib/assets/index.html" end |
.show_message ⇒ Object
class methods that you define here become available in your action as ‘Helper::AliossHelper.your_method`
12 13 14 |
# File 'lib/fastlane/plugin/alioss/helper/alioss_helper.rb', line 12 def self. UI.("Hello from the alioss plugin helper!") end |