Sha256: 791a98366b5bf8515f8135956f964cdf5c61a0f3533ec17fdc0440e8ac782c28

Contents?: true

Size: 573 Bytes

Versions: 91

Compression:

Stored size: 573 Bytes

Contents

Dir[File.join(Dir.pwd, 'tasks', '**', '*.rb')].each { |f| require f }

module Distribution
  class Executable
    include PackageHelpers
    extend Forwardable

    attr_reader :package

    def_delegators :@package, :dir, :package_name

    def initialize(package)
      @package = package
    end

    def self.create(package)
      executable = new(package)
      executable.copy_wrapper
      executable
    end

    def copy_wrapper
      print_to_console 'Creating exexutable...'

      FileUtils.cp 'packaging/wrapper.sh', "#{dir}/#{package_name}"
    end
  end
end

Version data entries

91 entries across 91 versions & 3 rubygems

Version Path
brief-1.11.9 tasks/distribution/executable.rb
brief-1.11.8 tasks/distribution/executable.rb
brief-1.11.7 tasks/distribution/executable.rb
brief-1.11.6 tasks/distribution/executable.rb
brief-1.11.5 tasks/distribution/executable.rb
brief-1.11.4 tasks/distribution/executable.rb
architects-toolkit-0.1.10 tasks/distribution/executable.rb
brief-1.11.3 tasks/distribution/executable.rb
datapimp-1.0.21 tasks/distribution/executable.rb
datapimp-1.0.20 tasks/distribution/executable.rb
brief-1.11.2 tasks/distribution/executable.rb
datapimp-1.0.15 tasks/distribution/executable.rb
brief-1.11.1 tasks/distribution/executable.rb
brief-1.11.0 tasks/distribution/executable.rb
datapimp-1.0.14 tasks/distribution/executable.rb
brief-1.10.1 tasks/distribution/executable.rb
brief-1.10.0 tasks/distribution/executable.rb
brief-1.9.14 tasks/distribution/executable.rb
brief-1.9.13 tasks/distribution/executable.rb
brief-1.9.12 tasks/distribution/executable.rb