Class: Pantograph::SetupAngular
- Defined in:
- pantograph/lib/pantograph/setup/setup_angular.rb
Instance Attribute Summary
Attributes inherited from Setup
#had_multiple_projects_to_choose_from, #lane_to_mention, #pantfile_content, #platform, #preferred_setup_method, #project_path
Instance Method Summary collapse
- #fetch_information ⇒ Object
- #finish_up ⇒ Object
-
#setup_angular ⇒ Object
attr_accessor :package_name.
Methods inherited from Setup
#add_or_update_gemfile, #append_lane, #continue_with_enter, #ensure_gemfile_valid!, #explain_concepts, #gemfile_exists?, #gemfile_path, #initialize, #pantfile_template_content, #setup_gemfile!, #show_analytics_note, start, #suggest_next_steps, #welcome_to_pantograph, #write_pantfile!
Constructor Details
This class inherits a constructor from Pantograph::Setup
Instance Method Details
#fetch_information ⇒ Object
50 51 52 53 54 55 56 57 58 |
# File 'pantograph/lib/pantograph/setup/setup_angular.rb', line 50 def fetch_information # UI.message('') # UI.message("To avoid re-entering your package name and issuer every time you run pantograph, we'll store those in a so-called Appfile.") # self.package_name = UI.input("Package Name (com.krausefx.app): ") # puts("") # puts("To automatically upload builds and metadata to Google Play, pantograph needs a service account json secret file".yellow) # puts("Feel free to press Enter at any time in order to skip providing pieces of information when asked") end |
#finish_up ⇒ Object
60 61 62 63 64 |
# File 'pantograph/lib/pantograph/setup/setup_angular.rb', line 60 def finish_up # self.pantfile_content.gsub!(":generic", ":generic") super end |
#setup_angular ⇒ Object
attr_accessor :package_name
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'pantograph/lib/pantograph/setup/setup_angular.rb', line 5 def setup_angular # self.platform = :generic welcome_to_pantograph self.pantfile_content = pantfile_template_content fetch_information PantographCore::PantographFolder.create_folder! self.append_lane([ "desc 'Runs all the tests'", "lane :pipeline do", " test", " build", " publish", "end" ]) self.append_lane([ "desc 'Runs all the tests'", "lane :test do", " puts 'this is the test lane'", "end" ]) self.append_lane([ "desc 'Publish new version to Artifactory'", "lane :build do", " sh('npm install')", "end" ]) self.append_lane([ "desc 'Deploy a new version to Artifactory'", "lane :publish do", " next unless UI.confirm('Do you want to deploy')", "end" ]) self.lane_to_mention = "test" finish_up end |