Sha256: 6953310def08ca3a15f217de530da17029dda2cd7b555c01ac22baed0edb4fe9
Contents?: true
Size: 1.18 KB
Versions: 7
Compression:
Stored size: 1.18 KB
Contents
module Pantograph module Actions class AddExtraPlatformsAction < Action def self.run(params) UI.verbose("Before injecting extra platforms: #{Pantograph::SupportedPlatforms.all}") Pantograph::SupportedPlatforms.extra = params[:platforms] UI.verbose("After injecting extra platforms (#{params[:platforms]})...: #{Pantograph::SupportedPlatforms.all}") end def self.description "Modify the default list of supported platforms" end def self.available_options [ PantographCore::ConfigItem.new(key: :platforms, optional: false, type: Array, default_value: "", description: "The optional extra platforms to support") ] end def self.authors ["lacostej"] end def self.is_supported?(platform) true end def self.example_code [ 'add_extra_platforms( platforms: [:windows, :neogeo] )' ] end def self.category :misc end end end end
Version data entries
7 entries across 7 versions & 1 rubygems