Sha256: a3403b59b2160da08d2f2d8b9a4c5f6d8b877e045489691ee0b024f804340faf
Contents?: true
Size: 552 Bytes
Versions: 3
Compression:
Stored size: 552 Bytes
Contents
# encoding: utf-8 module GithubCLI module DSL @@program_name = $0.split(/\//)[-1] @@error_block = nil # Defines a program name. # def program_name(name=nil) if name @@program_name = name end @@program_name end # Defines behaviour on error to emit consistent type. # def on_error yield rescue Exception => error raise GithubCLI::GithubCLIError, "Rescued: #{error}" end def before(&block) end def configure(&block) end end # DSL end # GithubCLI
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
github_cli-0.5.6 | lib/github_cli/dsl.rb |
github_cli-0.5.5 | lib/github_cli/dsl.rb |
github_cli-0.5.4 | lib/github_cli/dsl.rb |