Sha256: b6da3ff65666d3a8ed2cf2dfc5ded5743d8d7e6b6b4a1f2e1d171dc0925f1892

Contents?: true

Size: 318 Bytes

Versions: 1

Compression:

Stored size: 318 Bytes

Contents

require 'simple_shell'

class Heidi
  class Hook
    def initialize(project, script)
      @project = project
      @script  = script
    end

    def perform(where)
      shell = SimpleShell.new(where)
      res = shell.do @script
      return res
    end

    def name
      File.basename(@script)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
heidi-0.0.1 lib/heidi/hook.rb