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.17.14 tasks/distribution/executable.rb
brief-1.17.13 tasks/distribution/executable.rb
brief-1.17.12 tasks/distribution/executable.rb
brief-1.17.11 tasks/distribution/executable.rb
brief-1.17.10 tasks/distribution/executable.rb
brief-1.17.9 tasks/distribution/executable.rb
brief-1.17.8 tasks/distribution/executable.rb
brief-1.17.7 tasks/distribution/executable.rb
brief-1.17.5 tasks/distribution/executable.rb
brief-1.17.4 tasks/distribution/executable.rb
brief-1.17.3 tasks/distribution/executable.rb
brief-1.17.2 tasks/distribution/executable.rb
brief-1.17.1 tasks/distribution/executable.rb
brief-1.17.0 tasks/distribution/executable.rb
brief-1.16.2 tasks/distribution/executable.rb
brief-1.16.1 tasks/distribution/executable.rb
brief-1.16.0 tasks/distribution/executable.rb
brief-1.15.5 tasks/distribution/executable.rb
brief-1.15.4 tasks/distribution/executable.rb
brief-1.15.3 tasks/distribution/executable.rb