class AnchorUi::Sprockets::Assets::CoreUi
Public Class Methods
asset_name()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui.rb, line 10 def self.asset_name 'coreui' end
Public Instance Methods
update()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui.rb, line 14 def update download url, zip_path unzip compile_coreui_scss compile_variables_scss move_files clear end
Private Instance Methods
compile_coreui_scss()
click to toggle source
Calls superclass method
# File lib/anchor_ui/sprockets/assets/core_ui.rb, line 57 def compile_coreui_scss super 'coreui' end
compile_variables_scss()
click to toggle source
Calls superclass method
# File lib/anchor_ui/sprockets/assets/core_ui.rb, line 61 def compile_variables_scss super( <<~SCSS, @import 'bootstrap/functions', 'bootstrap/variables'; SCSS <<~SCSS // Paths $coreui-icons-font-path: 'coreui-icons'; SCSS ) end
extraction_path()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui.rb, line 41 def extraction_path tmp_path.join directory_name end
javascripts_destination_path()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui.rb, line 37 def javascripts_destination_path javascripts_path.join asset_name end
javascripts_source_path()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui.rb, line 45 def javascripts_source_path extraction_path.join javascripts_relative_path end
move_files()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui.rb, line 77 def move_files FileUtils.rm_rf javascripts_destination_path FileUtils.mv( javascripts_source_path, javascripts_destination_path ) FileUtils.rm_rf stylesheets_destination_path FileUtils.mv( stylesheets_source_path, stylesheets_destination_path ) end
stylesheets_destination_path()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui.rb, line 33 def stylesheets_destination_path stylesheets_path.join asset_name end
stylesheets_source_path()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui.rb, line 49 def stylesheets_source_path extraction_path.join stylesheets_relative_path end
templates_path()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui.rb, line 53 def templates_path root_path.join 'lib/generators/anchor_ui/sprockets/templates' end
url()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui.rb, line 29 def url "https://github.com/coreui/coreui/archive/#{zip_name}" end
zip_name()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui.rb, line 25 def zip_name "v#{version}.zip" end