Sha256: 4e52d69539d01bcdbc0b911a7468ee0b3f6fca23a932de31c416d22ba012626d

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

require 'logical-construct/ground-control/run-on-target'

module LogicalConstruct
  class EnsureEnv < RunOnTarget
    default_namespace :ensure_env

    def define
      remote_task(:bundler, "Ensure that bundler is installed on the remote server") do |task|
        task.verify_command = cmd "bundle", "--version"
        task.command = cmd("sudo") - %w{gem install bundler}
      end
      bracket_task(:local_setup, :bundler, :remote_setup)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logical-construct-0.0.1.localtesting lib/logical-construct/ground-control/setup/ensure-env.rb