Method: Wired::AppBuilder#deploy_github

Defined in:
lib/wired/builders/app_builder.rb

#deploy_githubObject



168
169
170
171
172
173
174
175
176
177
178
179
# File 'lib/wired/builders/app_builder.rb', line 168

def deploy_github
  github_result = run "hub create -p wirelab/#{app_name_clean}"
  if github_result
    puts "Github repo wirelab/#{app_name_clean} created."
  else
    puts "Github creation wirelab/#{app_name_clean} failed."
    puts "Wired generation halted due to error."
    puts "You might want to remove the created Rails app and retry."
    exit
  end
  run "git push --all"
end