Sha256: e642d8a7d28068c34cd18dc28a7a0e6d454a8ac3d06174907e6dbb11550d9333

Contents?: true

Size: 601 Bytes

Versions: 427

Compression:

Stored size: 601 Bytes

Contents

module Screengrab
  class Setup
    # This method will take care of creating a screengrabfile and other necessary files
    def self.create(path)
      screengrabfile_path = File.join(path, 'Screengrabfile')

      if File.exist?(screengrabfile_path)
        UI.user_error!("Screengrabfile already exists at path '#{screengrabfile_path}'. Run 'screengrab' to use screengrab.")
      end

      File.write(screengrabfile_path, File.read("#{Screengrab::ROOT}/lib/assets/ScreengrabfileTemplate"))

      UI.success("Successfully created new Screengrabfile at '#{screengrabfile_path}'")
    end
  end
end

Version data entries

427 entries across 427 versions & 2 rubygems

Version Path
fastlane-2.24.0.beta.20170325010032 screengrab/lib/screengrab/setup.rb
fastlane-2.23.0 screengrab/lib/screengrab/setup.rb
fastlane-2.23.0.beta.20170322010036 screengrab/lib/screengrab/setup.rb
fastlane-2.22.0 screengrab/lib/screengrab/setup.rb
fastlane-2.22.0.beta.20170321010023 screengrab/lib/screengrab/setup.rb
fastlane-2.21.0 screengrab/lib/screengrab/setup.rb
fastlane-2.21.0.beta.20170320010043 screengrab/lib/screengrab/setup.rb
fastlane-2.21.0.beta.20170319010027 screengrab/lib/screengrab/setup.rb
fastlane-2.21.0.beta.20170318010107 screengrab/lib/screengrab/setup.rb
fastlane-2.21.0.beta.20170317010039 screengrab/lib/screengrab/setup.rb
fastlane-2.21.0.beta.20170316010039 screengrab/lib/screengrab/setup.rb
fastlane-2.20.0 screengrab/lib/screengrab/setup.rb
fastlane-2.20.0.beta.20170315010053 screengrab/lib/screengrab/setup.rb
fastlane-2.20.0.beta.20170314010029 screengrab/lib/screengrab/setup.rb
fastlane-2.20.0.beta.20170313010048 screengrab/lib/screengrab/setup.rb
fastlane-2.20.0.beta.20170312010035 screengrab/lib/screengrab/setup.rb
fastlane-2.20.0.beta.20170311010030 screengrab/lib/screengrab/setup.rb
fastlane-2.20.0.beta.20170310010058 screengrab/lib/screengrab/setup.rb
fastlane-2.20.0.beta.20170309010049 screengrab/lib/screengrab/setup.rb
fastlane-2.20.0.beta.20170308010036 screengrab/lib/screengrab/setup.rb