Sha256: f38680463a5a9286b873e2ebb216528c80357ac3b15dab6cb02ee4852b17d0f2

Contents?: true

Size: 410 Bytes

Versions: 19

Compression:

Stored size: 410 Bytes

Contents

module Mina
  module Backend
    class Local
      include Configuration::DSL
      attr_reader :commands

      def initialize(commands)
        @commands = commands
      end

      def prepare
        if fetch(:simulate)
          ['#!/usr/bin/env bash', '# Executing the following:', '#', commands, ' '].join("\n")
        else
          Shellwords.escape(commands)
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
mina-1.2.4 lib/mina/backend/local.rb
mina-1.2.3 lib/mina/backend/local.rb
mina-1.2.2 lib/mina/backend/local.rb
mina-1.2.1 lib/mina/backend/local.rb
mina-1.2.0 lib/mina/backend/local.rb
mina-1.1.1 lib/mina/backend/local.rb
mina-1.1.0 lib/mina/backend/local.rb
mina-1.0.7 lib/mina/backend/local.rb
mina-1.0.6 lib/mina/backend/local.rb
mina-1.0.5 lib/mina/backend/local.rb
mina-1.0.4 lib/mina/backend/local.rb
mina-1.0.3 lib/mina/backend/local.rb
mina-1.0.2 lib/mina/backend/local.rb
mina-1.0.0 lib/mina/backend/local.rb
mina-1.0.0.rc2 lib/mina/backend/local.rb
mina-1.0.0.beta5 lib/mina/backend/local.rb
mina-1.0.0.beta4 lib/mina/backend/local.rb
mina-1.0.0.beta3 lib/mina/backend/local.rb
mina-1.0.0.beta2 lib/mina/backend/local.rb