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.27.0.beta.20170409010031 screengrab/lib/screengrab/setup.rb
fastlane-2.26.1 screengrab/lib/screengrab/setup.rb
fastlane-2.27.0.beta.20170408010009 screengrab/lib/screengrab/setup.rb
fastlane-2.27.0.beta.20170407010056 screengrab/lib/screengrab/setup.rb
fastlane-2.26.0 screengrab/lib/screengrab/setup.rb
fastlane-2.26.0.beta.20170406010019 screengrab/lib/screengrab/setup.rb
fastlane-2.26.0.beta.20170405010026 screengrab/lib/screengrab/setup.rb
fastlane-2.26.0.beta.20170404010022 screengrab/lib/screengrab/setup.rb
fastlane-2.25.0 screengrab/lib/screengrab/setup.rb
fastlane-2.25.0.beta.20170403010018 screengrab/lib/screengrab/setup.rb
fastlane-2.25.0.beta.20170402010035 screengrab/lib/screengrab/setup.rb
fastlane-2.25.0.beta.20170401010021 screengrab/lib/screengrab/setup.rb
fastlane-2.25.0.beta.20170331010039 screengrab/lib/screengrab/setup.rb
fastlane-2.25.0.beta.20170330225747 screengrab/lib/screengrab/setup.rb
fastlane-2.24.0 screengrab/lib/screengrab/setup.rb
fastlane-2.24.0.beta.20170330010023 screengrab/lib/screengrab/setup.rb
fastlane-2.24.0.beta.20170329010023 screengrab/lib/screengrab/setup.rb
fastlane-2.24.0.beta.20170328010037 screengrab/lib/screengrab/setup.rb
fastlane-2.24.0.beta.20170327010009 screengrab/lib/screengrab/setup.rb
fastlane-2.24.0.beta.20170326010023 screengrab/lib/screengrab/setup.rb