Sha256: 1217509eaa13017335f4bd7c74247c350426d9dc04563b3a2100d6a2733c453e

Contents?: true

Size: 720 Bytes

Versions: 15

Compression:

Stored size: 720 Bytes

Contents

class Tasks::Toolbelt::Build::Windows < Tasks::Toolbelt
    
  around_ensure :cleanup
    
  def call
    input_file = File.join( tarball_path, 'win_setup.tar.gz')
    # download file from s3
    File.open(input_file, "wb") do |saved_file|
      open('http://s3.amazonaws.com/quandl-command/win_setup/win_setup.tar.gz','rb') {|read_file|
        saved_file.write(read_file.read)
      }
    end
    # unpack win_setup
    Tar.unpack( File.join( tarball_path, "win_setup.tar.gz" ), tarball_path )
    #build win exe
    sh "cd \"#{File.join(root_path, 'scripts','win')}\"  && \"#{inno_path}\\iscc\" /cc \"quandl_toolbelt.iss\""
  end
  
  protected
  
  def cleanup
    rm_rf File.join( root_path, '.bundle')
  end
  
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
quandl-0.4.4 tasks/toolbelt/build/windows.rb
quandl-0.4.3 tasks/toolbelt/build/windows.rb
quandl-0.4.2 tasks/toolbelt/build/windows.rb
quandl-0.4.1 tasks/toolbelt/build/windows.rb
quandl-0.4.0 tasks/toolbelt/build/windows.rb
quandl-0.3.7 tasks/toolbelt/build/windows.rb
quandl-0.3.6 tasks/toolbelt/build/windows.rb
quandl-0.3.4 tasks/toolbelt/build/windows.rb
quandl-0.3.3 tasks/toolbelt/build/windows.rb
quandl-0.3.0 tasks/toolbelt/build/windows.rb
quandl-0.2.27 tasks/toolbelt/build/windows.rb
quandl-0.2.26 tasks/toolbelt/build/windows.rb
quandl-0.2.25 tasks/toolbelt/build/windows.rb
quandl-0.2.24 tasks/toolbelt/build/windows.rb
quandl-0.2.22 tasks/toolbelt/build/windows.rb