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.63.0.beta.20171024010003 screengrab/lib/screengrab/setup.rb
fastlane-2.62.1 screengrab/lib/screengrab/setup.rb
fastlane-2.63.0.beta.20171023010003 screengrab/lib/screengrab/setup.rb
fastlane-2.63.0.beta.20171022010003 screengrab/lib/screengrab/setup.rb
fastlane-2.63.0.beta.20171021010003 screengrab/lib/screengrab/setup.rb
fastlane-2.63.0.beta.20171020010003 screengrab/lib/screengrab/setup.rb
fastlane-2.63.0.beta.20171019010003 screengrab/lib/screengrab/setup.rb
fastlane-2.63.0.beta.20171018010003 screengrab/lib/screengrab/setup.rb
fastlane-2.62.0 screengrab/lib/screengrab/setup.rb
fastlane-2.62.0.beta.20171017010003 screengrab/lib/screengrab/setup.rb
fastlane-2.62.0.beta.20171016010004 screengrab/lib/screengrab/setup.rb
fastlane-2.62.0.beta.20171015010003 screengrab/lib/screengrab/setup.rb
fastlane-2.62.0.beta.20171014010003 screengrab/lib/screengrab/setup.rb
fastlane-2.62.0.beta.20171011010003 screengrab/lib/screengrab/setup.rb
fastlane-2.62.0.beta.20171010010004 screengrab/lib/screengrab/setup.rb
fastlane-2.61.0 screengrab/lib/screengrab/setup.rb
fastlane-2.61.0.beta.20171009010003 screengrab/lib/screengrab/setup.rb
fastlane-2.61.0.beta.20171008010003 screengrab/lib/screengrab/setup.rb
fastlane-2.61.0.beta.20171007010004 screengrab/lib/screengrab/setup.rb
fastlane-2.61.0.beta.20171006010004 screengrab/lib/screengrab/setup.rb