instance method
github
Ruby on Rails 6.0.6
Since v6.0.6Signature
github(repo, options = {}, &block)
No documentation comment.
Parameters
-
reporeq -
optionsopt = {} -
blockblock
Source
# File railties/lib/rails/generators/actions.rb, line 67
def github(repo, options = {}, &block)
str = [quote(repo)]
str << quote(options) unless options.empty?
str = str.join(", ")
log :github, "github #{str}"
in_root do
append_file "Gemfile", "\n#{indentation}github #{str} do", force: true
with_indentation(&block)
append_file "Gemfile", "\n#{indentation}end", force: true
end
end
Defined in railties/lib/rails/generators/actions.rb line 67
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::Actions