Sha256: 0fac602eeec01288d86fec25a45cae67ac1de63672820cda06ad1829e2f51344

Contents?: true

Size: 960 Bytes

Versions: 8

Compression:

Stored size: 960 Bytes

Contents

# frozen_string_literal: true

require_relative 'lib/ruby_raider'
require_relative 'lib/commands/scaffolding_commands'
require_relative 'lib/utilities/logger'

desc 'Creates a new test project'
task :new, [:name] do |_t, args|
  system "bin/raider -n #{args.name}"
end

desc 'Creates a page'
task :page, [:name, :path] do |_t, args|
  ScaffoldingCommands.new.invoke(:page, nil, %W[:#{args.name} --path #{args.path}])
end

desc 'Sets a browser'
task :browser, [:type, :options] do |_t, args|
  ScaffoldingCommands.new.invoke(:browser, nil, %W[:#{args.type} --opts #{args.options}])
end

desc 'Updates a path'
task :path, [:path] do |_t, args|
  ScaffoldingCommands.new.invoke(:path, nil, %W[#{args.path} -s])
end

desc 'Download mobile builds'
task :builds, [:type] do |_t, args|
  ScaffoldingCommands.new.invoke(:download_builds, nil, %W[#{args.type}])
end

desc 'Logs a warning'
task :log, [:message] do |_t, args|
  RubyRaider::Logger.warn(args.message)
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby_raider-0.8.5 Rakefile
ruby_raider-0.8.3 Rakefile
ruby_raider-0.8.2 Rakefile
ruby_raider-0.8.1 Rakefile
ruby_raider-0.8.0 Rakefile
ruby_raider-0.7.9 Rakefile
ruby_raider-0.7.8 Rakefile
ruby_raider-0.7.7 Rakefile