Sha256: 00c29392a028eb6f5aefac9b2fb238fc37b952848f114b8bb879ac6d14ee609f

Contents?: true

Size: 961 Bytes

Versions: 12

Compression:

Stored size: 961 Bytes

Contents

# frozen_string_literal: true

desc "Restart application"
task :restart do
  in_path(fetch(:current_path)) do
    command %(mkdir -p tmp/)
    command %(touch tmp/restart.txt)
  end
end

desc "Checks out the selected release tag"
task :checkout_release do
  comment "Checking out release \"#{fetch :tag}\""
  command %(git clone -b "#{fetch :tag}" --depth 1 "#{fetch :repository}" .)
end

desc "Uses an RVM envionment"
task :rvm_use do
  command "rvm use \"ruby-#{fetch :rvm_ruby_version}\""
end

desc "Link shared directories."
task :link_shared_dirs do
  # Must be set after :stage is set
  set :shared_files, fetch(:shared_files, []).push(
    "config/environments/#{fetch :stage}.rb"
  )

  comment "Shared directories: #{(fetch :shared_dirs).join("\n")}"
  invoke :'deploy:link_shared_paths'
end

desc "Open the newly deployed server in the browser (for macOS)."
task :open_browser do
  run(:local) do
    command "open https://#{fetch :domain}"
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
groundskeeper-bitcore-0.24.0 config/tasks.rb
groundskeeper-bitcore-0.23.0 config/tasks.rb
groundskeeper-bitcore-0.22.0 config/tasks.rb
groundskeeper-bitcore-0.21.0 config/tasks.rb
groundskeeper-bitcore-0.20.1 config/tasks.rb
groundskeeper-bitcore-0.19.0 config/tasks.rb
groundskeeper-bitcore-0.18.0 config/tasks.rb
groundskeeper-bitcore-0.17.0 config/tasks.rb
groundskeeper-bitcore-0.16.0 config/tasks.rb
groundskeeper-bitcore-0.15.0 config/tasks.rb
groundskeeper-bitcore-0.14.0 config/tasks.rb
groundskeeper-bitcore-0.13.0 config/tasks.rb