lib/shipit/commands.rb in shipit-engine-0.33.0 vs lib/shipit/commands.rb in shipit-engine-0.34.0
- old
+ new
@@ -19,16 +19,23 @@
delegate :git_version, to: :class
def env
@env ||= Shipit.env.merge(
- 'GITHUB_DOMAIN' => Shipit.github.domain,
- 'GITHUB_TOKEN' => Shipit.github.token,
+ 'GITHUB_DOMAIN' => github.domain,
+ 'GITHUB_TOKEN' => github.token,
'GIT_ASKPASS' => Shipit::Engine.root.join('lib', 'snippets', 'git-askpass').realpath.to_s,
)
end
def git(*args)
Command.new("git", *args)
+ end
+ ruby2_keywords :git if respond_to?(:ruby2_keywords, true)
+
+ private
+
+ def github
+ Shipit.github
end
end
end