Sha256: ff6ba614fbe0ecca44a7de061876558dc8798d040940049e7fdcb71381d1838f

Contents?: true

Size: 1018 Bytes

Versions: 25

Compression:

Stored size: 1018 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 :branch}" "#{fetch :repository}" .)
  command "git fetch"
  command %(git checkout "#{fetch :tag}")
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

25 entries across 25 versions & 1 rubygems

Version Path
groundskeeper-bitcore-0.12.0 config/tasks.rb
groundskeeper-bitcore-0.11.0 config/tasks.rb
groundskeeper-bitcore-0.10.0 config/tasks.rb
groundskeeper-bitcore-0.9.0 config/tasks.rb
groundskeeper-bitcore-0.8.0 config/tasks.rb
groundskeeper-bitcore-0.7.0 config/tasks.rb
groundskeeper-bitcore-0.6.0 config/tasks.rb
groundskeeper-bitcore-0.5.0 config/tasks.rb
groundskeeper-bitcore-0.4.0 config/tasks.rb
groundskeeper-bitcore-0.3.7 config/tasks.rb
groundskeeper-bitcore-0.3.6 config/tasks.rb
groundskeeper-bitcore-0.3.5 config/tasks.rb
groundskeeper-bitcore-0.3.4 config/tasks.rb
groundskeeper-bitcore-0.3.3 config/tasks.rb
groundskeeper-bitcore-0.3.2 config/tasks.rb
groundskeeper-bitcore-0.3.1 config/tasks.rb
groundskeeper-bitcore-0.3.0 config/tasks.rb
groundskeeper-bitcore-0.2.7 config/tasks.rb
groundskeeper-bitcore-0.2.6 config/tasks.rb
groundskeeper-bitcore-0.2.5 config/tasks.rb