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.61.0.beta.20171005010003 screengrab/lib/screengrab/setup.rb
fastlane-2.61.0.beta.20171004010004 screengrab/lib/screengrab/setup.rb
fastlane-2.60.1 screengrab/lib/screengrab/setup.rb
fastlane-2.60.0 screengrab/lib/screengrab/setup.rb
fastlane-2.60.0.beta.20171003010003 screengrab/lib/screengrab/setup.rb
fastlane-2.60.0.beta.20171002010004 screengrab/lib/screengrab/setup.rb
fastlane-2.60.0.beta.20171001010003 screengrab/lib/screengrab/setup.rb
fastlane-2.60.0.beta.20170930010003 screengrab/lib/screengrab/setup.rb
fastlane-2.60.0.beta.20170929010003 screengrab/lib/screengrab/setup.rb
fastlane-2.60.0.beta.20170928010003 screengrab/lib/screengrab/setup.rb
fastlane-2.60.0.beta.20170927010003 screengrab/lib/screengrab/setup.rb
fastlane-2.60.0.beta.20170926010004 screengrab/lib/screengrab/setup.rb
fastlane-2.59.0 screengrab/lib/screengrab/setup.rb
fastlane-2.59.0.beta.20170925010002 screengrab/lib/screengrab/setup.rb
fastlane-2.59.0.beta.20170924010003 screengrab/lib/screengrab/setup.rb
fastlane-2.59.0.beta.20170923010003 screengrab/lib/screengrab/setup.rb
fastlane-2.59.0.beta.20170922010003 screengrab/lib/screengrab/setup.rb
fastlane-2.59.0.beta.20170921010003 screengrab/lib/screengrab/setup.rb
fastlane-2.58.0 screengrab/lib/screengrab/setup.rb
fastlane-2.58.0.beta.20170920010003 screengrab/lib/screengrab/setup.rb