Class: Fastlane::RamDisk::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/ram_disk/manager.rb

Class Method Summary collapse

Class Method Details

.available_create_optionsObject



117
118
119
# File 'lib/fastlane/plugin/ram_disk/manager.rb', line 117

def available_create_options
  @create_options ||= create_options
end

.available_optionsObject



113
114
115
# File 'lib/fastlane/plugin/ram_disk/manager.rb', line 113

def available_options
  @available_options ||= available_options
end

.available_remove_optionsObject



121
122
123
# File 'lib/fastlane/plugin/ram_disk/manager.rb', line 121

def available_remove_options
  @remove_options ||= remove_options
end

.create_optionsObject



136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# File 'lib/fastlane/plugin/ram_disk/manager.rb', line 136

def create_options
  [
    FastlaneCore::ConfigItem.new(key: :name,
                                env_name: 'RAM_DISK_NAME',
                                description: 'The name of ram disk',
                                type: String),
    FastlaneCore::ConfigItem.new(key: :size,
                                env_name: 'RAM_DISK_SIZE',
                                description: 'The size of ram disk (unit is MB)',
                                type: String),
    FastlaneCore::ConfigItem.new(key: :mount_path,
                                env_name: 'RAM_DISK_MOUNT_PATH',
                                description: 'The path of ram disk',
                                optional: true,
                                default_value: '/Volumes',
                                type: String)
  ]
end

.remove_optionsObject



155
156
157
158
159
160
161
162
163
164
# File 'lib/fastlane/plugin/ram_disk/manager.rb', line 155

def remove_options
  [
    FastlaneCore::ConfigItem.new(key: :path,
                               env_name: 'RAM_DISK_PATH',
                               description: 'The path of ram disk',
                               optional: true,
                               default_value: Actions.lane_context[Actions::SharedValues::RAM_DISK_PATH],
                               type: String)
  ]
end