Class: Fastlane::Actions::InitAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::InitAction
- Defined in:
- lib/fastlane/plugin/apprepo/actions/init.rb
Documentation collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .is_supported?(_platform) ⇒ Boolean
Class Method Summary collapse
Class Method Details
.authors ⇒ Object
42 43 44 |
# File 'lib/fastlane/plugin/apprepo/actions/init.rb', line 42 def self. ['[email protected]'] end |
.available_options ⇒ Object
38 39 40 |
# File 'lib/fastlane/plugin/apprepo/actions/init.rb', line 38 def self. [] end |
.description ⇒ Object
34 35 36 |
# File 'lib/fastlane/plugin/apprepo/actions/init.rb', line 34 def self.description 'Initializes Repofile' end |
.is_supported?(_platform) ⇒ Boolean
46 47 48 |
# File 'lib/fastlane/plugin/apprepo/actions/init.rb', line 46 def self.is_supported?(_platform) true end |
.run(_params) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/fastlane/plugin/apprepo/actions/init.rb', line 9 def self.run(_params) # sh 'bundle exec rubocop -D' command :init do |c| c.syntax = 'apprepo init' c.description = 'Create the initial `apprepo` configuration' c.action do |_args, | if File.exist?('Repofile') || File.exist?('fastlane/Repofile') UI.important('You already got a running apprepo setup.') return 0 end require 'apprepo/setup' config = FastlaneCore::Configuration available_opts = Apprepo::Options. = config.create(available_opts, .__hash__) Apprepo::Runner.new() Apprepo::Setup.new.run() end end end |